I'm not quite sure how to word it but I have a group of tags I want to style
nav->ul->li->a but I'm not sure what the syntax is to specify it I've tried just about every combination I can think of
current code:
<!DOCTYPE html>
<html>
<head>
<title> Site One</title>
<meta charset="UTF-8"/>
<style>
.firststyle {
background-color:black;
color:white;
margin:20px;
padding:20px;
}
.nstyle {
backgroud-color: black;
color: orange;
margin:20px;
padding:20px;
nav,ul,li,a:link { color: orange; }
}
</style>
</head>
<body>
<div class="firststyle">
<center>
<h1> Site One</h1>
</center>
<div class="nstyle">
<nav>
<ul style="list-style: none;">
<li><a href="p_one.html">Page One</a></li>
<li><a href="p_two.html">Page two</a></li>
</ul>
</nav>
</div>
<p>
This is my testbed for HTML5/CSS and Javascript
</p>
</div>
</body>
</html>
Combinations I've tried:
nav > ul > li > a:link { color: orange; }
nav, ul, li, a:link { color: orange; }
nav.ul.li.a:link { color: orange; }
nav ul li a:link { color: orange; }
nav + ul + li + a:link { color: orange; }