July 16, 200818 yr I have a CSS-menu that I cant get to work in all browser. It works well in Safari , but have some problems in Firefox. The submenu is devided with a white line between the links, it shows without problems in Safari, but in Firefox the last menu - the dropdown menu - the lines does not fill the whole line out in the right. (the other dropdown links work fine) Maybe im horrible to explain, so I uploaded a picture to show the error: CSS-Code: #menu {list-style-type:none; margin:0; padding:0;} #menu li {display:block; float:left; position:relative; z-index:100; margin-right:1px;} #menu li span {display:block; z-index:100; padding: 5px 10px;font-size:1.1em;} #menu li a, #menu li a:visited {display:block; padding:0; white-space:nowrap;} #menu dl {position:absolute; top:0; left:0; margin: 0; padding: 0; background:transparent url(opaque.png);} * html #menu dl {background:transparent url(opaque.gif);} #menu dt {margin:0; font-size: 1.1em; float:left;} #menu dd {display:none; background: transparent; border-bottom:1px solid #fff; clear:left; margin:0; padding:0; color: #fff; font-size: 1em; text-align:left;} #menu dt a, #menu dt a:visited {display:block; color:#fff; padding: 5px 10px; text-decoration:none;} #menu dd a, #menu dd a:visited {color:#fff; text-decoration:none; display:block; padding: 5px 10px;} #menu li a:hover {border:0; text-decoration:no;} #menu li:hover dd, #menu li a:hover dd {display:block;} #menu li:hover dl, #menu li a:hover dl {padding-bottom:15px;} #menu li:hover dt a, #menu li a:hover dt a, #menu dd a:hover {color:#000;} HTML-code: <ul id="menu"> <li><span>Demos</span> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><a href="menu/index.html">Demos</a></dt> <dd><a href="menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></dd> <dd><a href="menu/embed.html" title="Wrapping text around images">wrapping text</a></dd> <dd><a href="menu/form.html" title="Styling forms">styled form</a></dd> <dd><a href="menu/nodots.html" title="Removing active/focus borders">active focus</a></dd> <dd><a href="menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a></dd> <dd><a href="menu/old_master.html" title="Image Map for detailed information">image map</a></dd> <dd><a href="menu/bodies.html" title="fun with background images">fun with backgrounds</a></dd> <dd><a href="menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</a></dd> <dd><a href="menu/em_images.html" title="em size images compared">em sized images</a></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><span>Menu Items</span> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><a href="index.html">Menu Items</a></dt> <dd><a href="spies.html" title="a coded list of spies">spies menu</a></dd> <dd><a href="vertical.html" title="a horizontal vertical menu">vertical menu</a></dd> <dd><a href="expand.html" title="an enlarging unordered list">enlarging list</a></dd> <dd><a href="enlarge.html" title="an unordered list with link images">link images</a></dd> <dd><a href="cross.html" title="non-rectangular links">non rectangular links</a></dd> <dd><a href="jigsaw.html" title="jigsaw links">jigsaw links</a></dd> <dd><a href="circles.html" title="circular links">circular links</a></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><span>Various Layouts</span> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><a href="../layouts/index.html">Various Layouts</a></dt> <dd><a href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></dd> <dd><a href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></dd> <dd><a href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></dd> <dd><a href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></dd> <dd><a href="../layouts/minimum.html" title="A simple minimum width layout">minimum width for Internet Explorer</a></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><span>Mozilla and other Browsers</span> <!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]--> <dl> <dt><a href="../mozilla/index.html">Mozilla and other Browsers</a></dt> <dd><a href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a></dd> <dd><a href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a></dd> <dd><a href="../mozilla/content.html" title="Using content:">content:</a></dd> <dd><a href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a></dd> <dd><a href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a></dd> <dd><a href="../mozilla/snooker.html" title="Snooker cue">a border art snooker cue</a></dd> <dd><a href="../mozilla/target.html" title="Target Practise">target practise</a></dd> </dl> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> </ul>
Create an account or sign in to comment