Hi everyone!
I have images I'm using in my navbar instead of text. I also have another image that replaces it for the hover effect. For some reason, the images are displaying vertically when I want them to display horizontally. I've tried every combination I can think of, any help would be appreciated. Here's an example of what's happening:
http://a.imageshack.us/img121/7180/11072538.png
Here's the HTML for the Nav:
<body>
<div id="container">
<div id="header">
<ul>
<li class="home"><a href="#">home</a></li>
<li class="about"><a href="#">about</a></li>
<li class="contact"><a href="#">contact</a></li>
</ul>
</div> <!-- end header -->
And my CSS:
/* Begin Container / Header */
#container {
margin: 0 auto;
width: 1024px;
height: auto;
}
#header {
background: url(images/header_bg.jpg) no-repeat;
width: 1024px;
height: 132px;
}
#header ul {
text-indent: -9999px;
width: 500px;
height: 132px;
float: right;
list-style: none;
padding-right: 40px;
padding-top: 85px;
}
#header li {
display: inline;;
}
#header ul li.home a {
text-indent: -9999px;
background-image:url(images/home.png);
background-repeat: no-repeat;
margin-right: 10px;
width: 60px;
height: 44px;
display: block;
}
#header ul li.home a:hover {
background-image:url(images/homeHover.png);
background-repeat: no-repeat;
width: 60px;
height: 44px;
}
#header ul li.about a {
margin-right: 10px;
text-indent: -9999px;
background-image:url(images/about.png);
background-repeat: no-repeat;
width: 54px;
height: 49px;
display: block;
}
#header ul li.about a:hover {
background-image:url(images/aboutHover.png);
background-repeat: no-repeat;
width: 54px;
height: 49px;
}
#header ul li.contact a {
margin-right: 10px;
text-indent: -9999px;
background-image:url(images/contact.png);
background-repeat: no-repeat;
width: 64px;
height: 31px;
display: block;
}
#header ul li.contact a:hover {
background-image:url(images/contactHover.png);
background-repeat: no-repeat;
width: 64px;
height: 31px;
}
I know I used random classes and they may not be used the way they should be, but I couldn't think of anything else to get this to work. Any help would be appreciated, thanks!