homeboy
04-12-2005, 01:37 AM
hello,
I have a navigation and i want to have the page that it is on the navigation link is highlighted grey in the background stating that it is on the link's page.
Here is the css code:
#navcontainer {
width: 200px;
color:#666666;
}
#navcontainer ul {
margin-left: 0px;
padding-left: 0px;
list-style:none;
font-family: Arial, Helvetica, sans-serif;
text-indent: 10px;
font-variant: normal;
font-weight:bold;
font-size:13px;
color: #666666;
}
#navcontainer a {
display: block;
padding: 5px;
width: 200px;
background-color: #FFFFFF;
border-bottom: 1px solid #666666;
}
#navcontainer a:link, #navlist a:visited {
color: #666666;
text-decoration: none;
}
#navcontainer a:hover {
background-color: #cccccc;
color: #666666;
}
here is the html code for the navigations
<div id="navcontainer">
<ul id="navlist">
<li><a href="#">Home</a></li>
<li><a href="#">Abouna's Corner</a></li>
<li><a href="#">Coptic Hymns</a></li>
<li><a href="#">Presentations</a></li>
<li><a href="#">Photo Gallery</a></li>
</ul>
</div>
So how can i do that active background color on a button indicated that it is on that page?
THanks
I have a navigation and i want to have the page that it is on the navigation link is highlighted grey in the background stating that it is on the link's page.
Here is the css code:
#navcontainer {
width: 200px;
color:#666666;
}
#navcontainer ul {
margin-left: 0px;
padding-left: 0px;
list-style:none;
font-family: Arial, Helvetica, sans-serif;
text-indent: 10px;
font-variant: normal;
font-weight:bold;
font-size:13px;
color: #666666;
}
#navcontainer a {
display: block;
padding: 5px;
width: 200px;
background-color: #FFFFFF;
border-bottom: 1px solid #666666;
}
#navcontainer a:link, #navlist a:visited {
color: #666666;
text-decoration: none;
}
#navcontainer a:hover {
background-color: #cccccc;
color: #666666;
}
here is the html code for the navigations
<div id="navcontainer">
<ul id="navlist">
<li><a href="#">Home</a></li>
<li><a href="#">Abouna's Corner</a></li>
<li><a href="#">Coptic Hymns</a></li>
<li><a href="#">Presentations</a></li>
<li><a href="#">Photo Gallery</a></li>
</ul>
</div>
So how can i do that active background color on a button indicated that it is on that page?
THanks