catfish Posted May 9, 2011 Report Posted May 9, 2011 I am just completing a website that I thought was looking just fine but have just had a comments from some viewers that the menu is messed up viewing with Windows 8. I don't have Windows 8 so I haven't seen this. Wondered if someone could help me out with this. The link is http://www.oliversgarden.com/ and the code below #navigation { height:36px; border-bottom:1px solid #ccc; border-top:1px solid #ccc; background-color:#999; background-image:url(images/menu_bg.jpg); background-repeat:repeat-x; } .menu {width:900px; height:31px; position:relative; z-index:100;border-right:0px solid #000; font-family:arial, sans-serif; margin: 0 auto;} /* hack to correct IE5.5 faulty box model */ * html .menu {width:900px; w\idth:900px;} /* remove all the bullets, borders and padding from the default list styling */ .menu ul {padding:0;margin:0;list-style-type:none;} .menu ul ul {width:148px;} /* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */ .menu li {float:left;width:150px;position:relative;} /* style the links for the top level */ .menu a, .menu a:visited {display:block;font-size:11px; text-align:center; text-decoration:none; color:#fff; width:148px; height:31px; border:1px solid #585752; border-width:0 0 0 1px; background:#999; background-image:url(images/menu_bg.jpg); background-repeat:repeat-x; padding-left:0px; padding-top:4px; line-height:31px; font-weight:bold;} /* a hack so that IE5.5 faulty box model is corrected */ * html .menu a, * html .menu a:visited {width:148px; w\idth:135px;} /* style the second level background */ .menu ul ul a.drop, .menu ul ul a.drop:visited {background:#ccc;} /* style the second level hover */ .menu ul ul a.drop:hover{background:#7cbab8;} .menu ul ul :hover > a.drop {background:#7cbab8;} /* style the third level background */ .menu ul ul ul a, .menu ul ul ul a:visited {background:#7cbab8;} /* style the third level hover */ .menu ul ul ul a:hover {background:#d8f6f5;} /* hide the sub levels and give them a positon absolute so that they take up no room */ .menu ul ul {visibility:hidden; position:absolute;height:0;top:31px;left:0; width:148px;border-top:1px solid #000;} /* another hack for IE5.5 */ * html .menu ul ul {top:30px;t\op:31px;} /* position the third level flyout menu */ .menu ul ul ul{left:150px; top:-1px; width:150px;} /* position the third level flyout menu for a left flyout */ .menu ul ul ul.left {left:-149px;} /* style the table so that it takes no ppart in the layout - required for IE to work */ .menu table {position:absolute; top:0; left:0; border-collapse:collapse;;} /* style the second level links */ .menu ul ul a, .menu ul ul a:visited {background: #fff; color:#000; height:auto; line-height:1em; padding:5px 14px; width:120px;border-width:0 1px 1px 1px;} /* yet another hack for IE5.5 */ * html .menu ul ul a, * html .menu ul ul a:visited {width:148px;w\idth:128px;} /* style the top level hover */ .menu a:hover, .menu ul ul a:hover{color:#000; background:red;} .menu :hover > a, .menu ul ul :hover > a {color:#000; background:#d8f6f5;} /* make the second level visible when hover on first level list OR link */ .menu ul li:hover ul, .menu ul a:hover ul{visibility:visible;} /* keep the third level hidden when you hover on first level list OR link */ .menu ul :hover ul ul{visibility:hidden;} /* make the third level visible when you hover over second level list OR link */ .menu ul :hover ul :hover ul{ visibility:visible;} <ul> <li><a href="index.php"> HOME<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> <li><a href="#nogo">BIRD TOYS<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="x-lg_toys.php">EXTRA LARGE TOYS</a></li> <li><a href="lg_toys.php">LARGE TOYS</a></li> <li><a href="med_toys.php">MEDIUM TOYS</a></li> <li><a href="small_toys.php">SMALL TOYS</a></li> <li><a href="foot_toys.php">FOOT TOYS</a></li> <li><a href="seasonal.php">SEASONAL TOYS</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a href="#nogo">ROPE PRODUCTS<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="crawlers_nets.php">CRAWLERS, ETC </a></li> <li><a href="oddball.php">ODD BALLS </a></li> <li><a href="boings.php">BOINGS</a></li> <li><a href="swings.php">SWINGS</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a href="#nogo">MISCELLANEOUS<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="sandy_perch.php">SANDY PERCH</a></li> <li><a href="cuckoo.php">CUCKOO’S CUISINE</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a href="shop.php">SHOP IN PERSON<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> <li><a href="contact.php">CONTACT/ORDER<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> </ul> Quote
catfish Posted May 9, 2011 Author Report Posted May 9, 2011 Oh, my. I just am doing a browser shot and is this how it really looks? I don't know how to fix this? Quote
falkencreative Posted May 9, 2011 Report Posted May 9, 2011 I'm getting issues on Windows XP running IE8. Specifically, I think it involves these lines: <li><a href="shop.php">SHOP IN PERSON<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> <li><a href="contact.php">CONTACT/ORDER<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> I'm not completely understanding what you are trying to do here... You are purposely not closing the </a> in IE7? And in other browsers, you are providing invalid code? The way IE8 is acting, I think it needs those two closing </a>s to function properly. EDIT: I think maybe you were trying to comment out the conditional comments? I think IE8 is having issues with them still. If you want to remove the conditional comment, remove it entirely -- don't try and comment it out. Quote
catfish Posted May 9, 2011 Author Report Posted May 9, 2011 I'm getting issues on Windows XP running IE8. Specifically, I think it involves these lines: <li><a href="shop.php">SHOP IN PERSON<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> <li><a href="contact.php">CONTACT/ORDER<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li> I'm not completely understanding what you are trying to do here... You are purposely not closing the </a> in IE7? And in other browsers, you are providing invalid code? The way IE8 is acting, I think it needs those two closing </a>s to function properly. EDIT: I think maybe you were trying to comment out the conditional comments? I think IE8 is having issues with them still. If you want to remove the conditional comment, remove it entirely -- don't try and comment it out. Very good, thankyou. That was it I guess, I've heard it looks fine now. Thanks again. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.