I am using a background image for list items which are href links. When the link text wraps to a second line, the background still shows in IE (which is what I want) but not in FF.
Can anybody tell me what the problem is?
The HTML is
<div id="leftnav">
<ul id="navigation">
<li><a href='mysite.com'>Very long link text wraps</a></li>
and the CSS is
#leftnav
{
float: left;
width: 14%;
margin: 0;
padding-top: 1em;
padding-left: 0.5em;
padding-right: 0.5em;
padding-bottom: 0;
}
#navigation {
position: relative;
float: left;
display: block;
padding: 0;
margin: 0;
font-weight: bold;
width: 100%;
}
#navigation li {
position: relative;
float: left;
width: 100%;
display: inline;
list-style: none;
padding: 0;
margin: 0;
text-align: left;
background-image: url('bg.jpg');
background-repeat: repeat-x;
border-top: 1px solid gray;
background-color: #FEFCFF;
}
#navigation li a {
padding-top: 0;
padding-bottom: 0;
padding-right: 0.5em;
padding-left: 0;
text-decoration: none;
width: 97%;
border-left: 1em solid #AAB;
}



Reply With Quote
Bookmarks