The problem is, the image is only visible directly behind the text. I have set the width and height of my li to be the same as my image, which is working but for some reason the text still dictates how much you can see of the image.. It seems to work when my nav is display as a block, but inline is not working. Iv now tried display:block with float:left, and that still isnt working. Any suggestions?
Here is my code:
- Code: Select all
<div id="header">
<div id="logo" style="float:left"><a href="index.php"><img src="/test/images/logo.jpg" /></a></div><!--Logo-->
<div id="navigation" style="float:right;" ><!--Begin Navigation-->
<ul>
<li style="list-style-image: url(/image/icn_interactive.jpg);"><a href="/interactive.php">interactive</a></li>
<li><a href="/print.php">print</a></li>
<li><a href="/painting.php">painting</a></li>
<!--<li><a href="#">branding</a></li>-->
<li><a href="/personal.php">personal</a></li>
<li><a href="/contact.php">contact</a></li>
<li style="border:none"><a href="http://maosinteractive.blogspot.com/" target="_blank">blog</a></li>
</ul>
</div><!--End Navigation-->
</div><!--End Header-->
Here is my CSS:
- Code: Select all
#header {
margin: 0px auto;
position:relative;
height:83px;
width: 100%;
}
#navigation {
position:absolute;
margin: 0px auto;
padding: 3px 0px;
bottom:0px;
right:0px;
text-align: center;
height:83px;
}
#navigation ul {
position:relative;
font-family: Helvetica, Arial, Helvetica, sans-serif;
font-size:14px;
float:right;
bottom:0px;
margin: 0px;
min-height:83px;
}
#navigation ul li {
position:relative;
display: block;
float:left;
list-style-type: none;
line-height: 40px;
margin: 0px 20px;
width:92px;
min-height:51px;
}
#navigation ul li a {
text-shadow: 1px 1px #000;
color: #f4f4f4;
margin-left: auto;
margin-right: auto;
text-decoration: none;
background:url(/test/images/button_bknd.png) center no-repeat;
width:92px;
min-height:51px;
}


