Home › Forums › CSS › Selecting a list tag with list tags within it › Reply To: Selecting a list tag with list tags within it
September 27, 2013 at 2:43 am
#143991
Historical Forums User
Participant
<pre class=”codepen” data-height=”300″ data-type=”html” data-href=”hnpoq” data-user=”A73X4ND3R” data-safe=”true”><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="navbar.css"/>
<title></title>
</head>
<body>
<a href=""#"">Home</a>
<!--I would like to put a link around the Photos list item, but I can't without adding
a link to all the links nested in it-->
Photos
<a href=""#"">People</a>
<a href=""#"">Animals</a>
<a href=""#"">Landmarks</a>
<!--I would like to put a link around the Videos list item, but I can't without adding
a link to all the links nested in it-->
Videos
<a href=""#"">Amateur</a>
<a href=""#"">Professional</a>
<a href=""#"">Forums</a>
<!------------------------------The reason I want anchor tags around the list item is so, when it is a navigation bar, you can click on the tab
itself, not just the words---------------------------------------------------->
</body>
</html>Check out this Pen!
<script async src=”http://codepen.io/assets/embed/ei.js”></script>