meltedtoons
31 Oct 2010, 01:44 AM
So I have the html code
<div id="navagation">
<ul>
<li><a href="http://answermyhw.webs.com/bantingriver.html">Home</a></li>
<li><a href="http://answermyhw.webs.com/c5551.html">Chatten</a></li>
<li><a href="http://answermyhw.webs.com/b4639.html">Blizzard</a></li>
<li><a href="http://answermyhw.webs.com/t7758.html">Therasse
</a></li>
<li><a href="http://answermyhw.webs.com/a991.html">About</a></li>
<li><a href="http://answermyhw.webs.com/d4745.html">Disclaimer</a></li>
</ul>
</div>
and the CSS
#navagation {
width: 996px;
height: 25px;
background:#98bf21;
overflow: hidden;
border-left: solid 2px;
border-right: solid 2px;
margin-left: auto;
margin-right: auto;
}
ul
{
list-style-type:none;
margin:0;
padding-left: 100px;
overflow:hidden;
}
li
{
float:left;
}
a:link,a:visited
{
display:block;
width:120px;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
text-align:center;
padding:4px;
text-decoration:none;
}
a:hover,a:active
{
background-color:#7A991A;
}
But the problem is the CSS code makes ALL the links on the website in to a nav styled link. How do you limit the code to only work on #navagation
(i know it's spelled wrong)
<div id="navagation">
<ul>
<li><a href="http://answermyhw.webs.com/bantingriver.html">Home</a></li>
<li><a href="http://answermyhw.webs.com/c5551.html">Chatten</a></li>
<li><a href="http://answermyhw.webs.com/b4639.html">Blizzard</a></li>
<li><a href="http://answermyhw.webs.com/t7758.html">Therasse
</a></li>
<li><a href="http://answermyhw.webs.com/a991.html">About</a></li>
<li><a href="http://answermyhw.webs.com/d4745.html">Disclaimer</a></li>
</ul>
</div>
and the CSS
#navagation {
width: 996px;
height: 25px;
background:#98bf21;
overflow: hidden;
border-left: solid 2px;
border-right: solid 2px;
margin-left: auto;
margin-right: auto;
}
ul
{
list-style-type:none;
margin:0;
padding-left: 100px;
overflow:hidden;
}
li
{
float:left;
}
a:link,a:visited
{
display:block;
width:120px;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
text-align:center;
padding:4px;
text-decoration:none;
}
a:hover,a:active
{
background-color:#7A991A;
}
But the problem is the CSS code makes ALL the links on the website in to a nav styled link. How do you limit the code to only work on #navagation
(i know it's spelled wrong)