javaguy78
05-02-2007, 06:29 PM
Website Example:
http://www.themaskedcrusader.com/main//pages/test-page.php
Explanation of the problem:
http://www.themaskedcrusader.com/main//pages/test-page/help.php
The Problem:
I have been working on a pure css menu on my website. The sub menu's are hidden by css until a link is hovered. You can see this on the top link. My problem is this: The CSS for the submenu is this:
#menu li:hover ul
{
display: block;
position: absolute;
font-size: 8pt;
margin-top: 3px;
border: 1px #EEE solid;
}
In Firefox, the sub menu is displayed properly below it's parent.
http://www.themaskedcrusader.com/main//media/help/ffox.gif
In Internet Explorer 7, the sub menu floats right of the parent rather than below.
http://www.themaskedcrusader.com/main//media/help/ie.gif
I can get the thing to float below by changing the position to relative, but then the parent cells (which are not static widths) are jumpy.
The only way to fix this that I have found is to use Position Relative and set the width of the parent == to the width of the child, I don't want to do that.
Is there an easy way to get the sub menu to display the same in IE and Firefox without all that hubbub?
http://www.themaskedcrusader.com/main//pages/test-page.php
Explanation of the problem:
http://www.themaskedcrusader.com/main//pages/test-page/help.php
The Problem:
I have been working on a pure css menu on my website. The sub menu's are hidden by css until a link is hovered. You can see this on the top link. My problem is this: The CSS for the submenu is this:
#menu li:hover ul
{
display: block;
position: absolute;
font-size: 8pt;
margin-top: 3px;
border: 1px #EEE solid;
}
In Firefox, the sub menu is displayed properly below it's parent.
http://www.themaskedcrusader.com/main//media/help/ffox.gif
In Internet Explorer 7, the sub menu floats right of the parent rather than below.
http://www.themaskedcrusader.com/main//media/help/ie.gif
I can get the thing to float below by changing the position to relative, but then the parent cells (which are not static widths) are jumpy.
The only way to fix this that I have found is to use Position Relative and set the width of the parent == to the width of the child, I don't want to do that.
Is there an easy way to get the sub menu to display the same in IE and Firefox without all that hubbub?