March 31, 200818 yr Ok I've been playing around with the CSS menu generator from here: http://wonderwebware.com/css-menu/ Easy to use - looks fine in Firefox & Opera - should look like this for example Move over produces sub menu : But it goes haywire in IE7 : Haven't been able to get it to behave at all In IE7 Can look like this I know IE has had "issues" with CSS menus but - Emailed the program makers but no reply. I'm no css/html guru sand may have missed something obvious but it would be nice to get this to work! the code is here Between head: <style type="text/css" media="screen"> #menu { width: 100%; background: #0000A0; float: left; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: solid; border-color: #004080; } #menu ul { list-style: none; margin: 0; padding: 0; width: auto; float: left; } #menu a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style: normal; display: block; margin: 0; padding: 2px 3px; color: #FFFFFF; background: #0000A0; text-decoration: none; } #menu a:hover { color: #FFFFFF; background: #400080; } #menu ul li a { border-top-width: 0; border-right-width: 1px; border-bottom-width: 0; border-left-width: 0; border-style: solid; border-color: #FFFF00; } #menu ul ul li a { border-top-width: 0; border-bottom-width: 1px; border-right-width: 0; border-left-width: 0; border-style: solid; border-color: #FFFF00; } #menu ul li a.lastone, #menu ul ul li a.lastone { border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; } #menu li {position: relative;} #menu ul ul { position: absolute; z-index: 500; width: 12em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: solid; border-color: #004080; } div#menu ul ul, div#menu ul li:hover ul ul {display: none;} div#menu ul li:hover ul, div#menu ul ul li:hover ul {display: block;} </style> <!--[if IE]> <style type="text/css" media="screen"> #menu ul li {float: left; width: 100%;} </style> <![endif]--> <!--[if lt IE 7]> <style type="text/css" media="screen"> #menu ul li a {height: 1%;} #menu a { font: bold 12px Arial, Helvetica, sans-serif; } </style> <![endif]--> Between body: <div id="menu"> <ul><li><a href="/">TIMETABLE</a> <ul > <li><a href="" >MONDAY</a></li> <li><a href="" >TUESDAY</a></li> <li><a href="" >WEDNESDAY</a></li> <li><a href="" >THURSDAY</a></li> <li><a href="" class="lastone">FRIDAY</a></li> </ul> </li></ul> <ul><li><a href="">ABOUT</a> </li></ul> <ul><li><a href="">CONTACT</a> </li></ul> </ul> </div>
March 31, 200818 yr Dear god, that generator really butchered the CSS! The source code is pretty interesting too. I might get some time later to trawl through the code and work out what's going wrong. I'm sure someone will help you before then, though.
Create an account or sign in to comment