bazz
03-11-2005, 06:21 PM
I gan get the <li> background to change on rollover in FF but nit in IE. Would somebody plz take a peek at this css and tell me what I am doing wrongly.
I want the rollover to show on the whole width of the nav menu and not just the text link.
Bazz
div#productnavbar1 {
float : left;
#background-color: #785B83;
background-image : url('images/menubkgrnd.jpg');
width : 190px;
border : 1px solid #e5f9ff;
text-align: left;
}
div#productnavbar1 h3 {
font-family : "Trebuchet MS", verdana, sans-serif, arial, helvetica;
font-size : 1.1em;
margin-left : 20px;
padding-top : 10px;
padding-bottom : 10px;
}
div#productnavbar1 ul {
background-color: transparent;
display: block;
white-space: nowrap;
margin-top : -15px;
}
div#productnavbar1 ul li
{
display : block;
list-style-type: none;
line-height : 25px;
border-bottom : 1px solid #000040;
background-color : #785B83;
margin-left : -45px;
padding: 0 20px;
}
div#productnavbar1 ul li a:link, div#productnavbar1 ul li a:visited, div#productnavbar1 ul li a:active {
color: #000040;
text-decoration: none;
font-size : .9em;
font-weight : normal;
}
div#productnavbar1 ul li a:visited {
background-color: transparent;
color : #000040;
}
div#productnavbar1 ul li:hover {
background-color: #ffffff;
color : #000040;
background: url(/images/bkgrnd2.jpg);
}
I want the rollover to show on the whole width of the nav menu and not just the text link.
Bazz
div#productnavbar1 {
float : left;
#background-color: #785B83;
background-image : url('images/menubkgrnd.jpg');
width : 190px;
border : 1px solid #e5f9ff;
text-align: left;
}
div#productnavbar1 h3 {
font-family : "Trebuchet MS", verdana, sans-serif, arial, helvetica;
font-size : 1.1em;
margin-left : 20px;
padding-top : 10px;
padding-bottom : 10px;
}
div#productnavbar1 ul {
background-color: transparent;
display: block;
white-space: nowrap;
margin-top : -15px;
}
div#productnavbar1 ul li
{
display : block;
list-style-type: none;
line-height : 25px;
border-bottom : 1px solid #000040;
background-color : #785B83;
margin-left : -45px;
padding: 0 20px;
}
div#productnavbar1 ul li a:link, div#productnavbar1 ul li a:visited, div#productnavbar1 ul li a:active {
color: #000040;
text-decoration: none;
font-size : .9em;
font-weight : normal;
}
div#productnavbar1 ul li a:visited {
background-color: transparent;
color : #000040;
}
div#productnavbar1 ul li:hover {
background-color: #ffffff;
color : #000040;
background: url(/images/bkgrnd2.jpg);
}