Hello
Everybody on the internet seems to think this is a problem with IE but for
me it works fine with IE, but the submenus do not appear with Firefox
andOpera.
The html is a simple list with sublists.
The CSS looks like this:
#menu ul {
list-style: none;
margin: 0;
padding: 0;
display: block;
font: bold 14pt/14pt "Times New Roman";
line-height: 30px;
width: 200px;
}
So we show the main menu. But we don't show the submenus:
#menu ul ul {
list-style: none;
margin: 0;
padding: 0;
display: none;
font: bold 12pt/12pt "Times New Roman";
line-height: 30px;
position: absolute;
left: 200px; top: 0px;
}
Except when the mouse is over the list item:
#menu li:hover ul {
display: block;
}
This works beautifully with IE (version 7.0.5730.11) but the submenus stay
hidden with Firefox (version 2.0.0.14) and Opera (version 9.10). I have
Windows XP Home if it makes a difference. I've tried different combinates of
li ul and li:hover :-) I even tried a:hover but then it doesn't work with IE
either.
I define colors under #menu a, #menu a:hover etc.
Can anyone help? I want to keep it pure CSS.
Thanks.
Meri
Everybody on the internet seems to think this is a problem with IE but for
me it works fine with IE, but the submenus do not appear with Firefox
andOpera.
The html is a simple list with sublists.
The CSS looks like this:
#menu ul {
list-style: none;
margin: 0;
padding: 0;
display: block;
font: bold 14pt/14pt "Times New Roman";
line-height: 30px;
width: 200px;
}
So we show the main menu. But we don't show the submenus:
#menu ul ul {
list-style: none;
margin: 0;
padding: 0;
display: none;
font: bold 12pt/12pt "Times New Roman";
line-height: 30px;
position: absolute;
left: 200px; top: 0px;
}
Except when the mouse is over the list item:
#menu li:hover ul {
display: block;
}
This works beautifully with IE (version 7.0.5730.11) but the submenus stay
hidden with Firefox (version 2.0.0.14) and Opera (version 9.10). I have
Windows XP Home if it makes a difference. I've tried different combinates of
li ul and li:hover :-) I even tried a:hover but then it doesn't work with IE
either.
I define colors under #menu a, #menu a:hover etc.
Can anyone help? I want to keep it pure CSS.
Thanks.
Meri
Comment