So im trying to code my navigation design like so :
HTML :
CSS:
basically i have a list in html with no values because I want to have images for them instead which have text on them also so I have no need to input any text for my HTML code. Once i get the background working I will then be adding a Hover targeting those id's and classes and replace the background images with a hover background image for a cool looking hover effect,
No images are displayed for my navigations so im wondering if anyone here can find my error?
Sorry if I explained it badly 😛 :lol:
HTML :
Code:
<div id="topnav">
<ul id="nav">
<li class="left"><a href="#" alt="left"></a>
<li class="home"><a href="#" alt="Home"></a>
<li class="bio"><a href="#" alt="Bio"></a>
<li class="portfolio"><a href="#" alt="Portfolio"></a>
<li class="downloads"><a href="#" alt="Downloads"></a>
<li class="contact"><a href="#" alt="Contact"></a>
<li class="right"><a href="#" alt="right"></a>
</ul>
</div>
CSS:
Code:
#topnav ul #nav li .left { background-image: img/left.jpg; width:8px; height:48px; }
#topnav ul #nav li .home {background-image: img/home.jpg ; width:59px; height:48px; }
#topnav ul #nav li .bio {background-image: img/bio.jpg ; width:45px; height:48px; }
#topnav ul #nav li .portfolio {background-image: img/portfolio.jpg ; width:83px; height:48px; }
#topnav ul #nav li .downloads {background-image: img/downloads.jpg ; width:103px; height:48px;}#topnav ul #nav li .contact {background-image: img/contact.jpg ; width:85px; height:48px; }
#topnav ul #nav li .right {background-image: img/right.jpg ; width:14px; height:48px; }
basically i have a list in html with no values because I want to have images for them instead which have text on them also so I have no need to input any text for my HTML code. Once i get the background working I will then be adding a Hover targeting those id's and classes and replace the background images with a hover background image for a cool looking hover effect,
No images are displayed for my navigations so im wondering if anyone here can find my error?
Sorry if I explained it badly 😛 :lol:







