Help - Search - Members - Calendar
Full Version: Menu won't work at 1024x768 or in IE6
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
dgafin
I am working on website on my free time for my brother's state baseball tournament. I have everything on the site looking good in Firefox/IE7/IE8 at a resolution above 1024x768. The menu is too far to the right on 1024x768 and I cannot figure out how to make it fit without causing it to look wrong at other resolutions. Also, the menu doesn't work in IE6, even though I have the IE6 hacks in there to use a different stylesheet. Any ideas on that? The website is setup for testing purposes a waynebaseball.ath.cx

DOCTYPE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Relevant CSS:
CODE

.menu {font-family: arial, sans-serif; width:1000px; height:16px; position:relative; font-size:16px; z-index:100;}
.menu ul li a, .menu ul li a:visited {display:block; text-decoration:none; color:#000;width:109px; height:20px; text-align:center; color:#fff; border:1px solid #fff; background:#0e03f2; line-height:20px; font-size:11px; overflow:hidden;}
.menu ul {padding:0; margin:0; list-style: none; width:100%}
.menu ul li {float:left; position:relative;}
.menu ul li ul {display: none;}



IE6 CSS:

CODE
.menu ul li a.hide, .menu ul li a:visited.hide {display:none;}
.menu ul li a:hover ul li a.hide {display:none;}

.menu ul li a:hover {color:#fff; background:#000;}
.menu ul li a:hover ul {display:block; position:absolute; top:21px; left:0; width:105px;}
.menu ul li a:hover ul li a.sub {background:#6a3; color:#fff;}
.menu ul li a:hover ul li a {display:block; background:#ddd; color:#000;}
.menu ul li a:hover ul li a ul {visibility:hidden;}
.menu ul li a:hover ul li a:hover {background:#0e03f2; color:#fff;}
.menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:105px; top:10; color:#000;}
.menu ul li a:hover ul li a:hover ul.left {left:-105px;}


Any help is greatly appreciated.
Darin McGrew
The main thing I see is that the horizontal menu forces horizontal scrolling if the window isn't wide enough. The way to eliminate the horizontal scrolling is to let the menu items wrap onto a second line if there isn't enough room.
Annie0083
Yes it looks so disgusting that the menu or a column breaks down. The look and feel of the site gets affected by this. Moreover the menus or the sub menus also very form browser to browser...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.