Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2007, 05:15 AM
WebProWorld New Member
 

Join Date: Sep 2005
Posts: 21
trancehead RepRank 0
Thumbs down IE 6 and drop down menu issues

I am currently using whatever:hover to simulate a drop down in IE 6 for my site. It has worked wonderfully up until recently. I have had to make the menu options more flexible at the top because of different languages and so needed to remove the width of each <ul> element.

This works just fine in FF and IE 7 but as usual IE 6 has to ruin the party

The menu drops down correctly but as soon as one starts hovering over an item with a sub menu it disappears. Also there appears to be some sort of extra margin underneath the horizontal line of menu items and in some scenarios when I hover over the drop down menu a clear margin appears under that item as well which is probably the reason it disappears.

The working, fixed width version is here: http://www.cybercellar.co.za but if you go to http://www.cybercellar.dk (the menu is in Danish) you will notice the horrible spacing because of the fixed width.

At the moment the non-working version is at http://www.tastesouthafrica.co.za/South%20Africa or http://www.tastesouthafrica.co.za/Denmark/ (For the danish site).

Any help is appreciated as I'm pulling my hair out on this one.
__________________
www.cybercellar.com - Buy South African wine online

Last edited by trancehead : 07-12-2007 at 05:19 AM. Reason: URL's weren't supposed to show Titles
Reply With Quote
  #2 (permalink)  
Old 07-13-2007, 12:41 PM
WebProWorld Member
 

Join Date: Jul 2006
Location: Oakland, CA
Posts: 45
holyhttp RepRank 0
Default Re: IE 6 and drop down menu issues

The top level links are not properly aligned in IE7 as well. My suggestion:
#menu ul li{
display: inline; margin:0; padding:0; position:relative; top:0px; left:0px;
}
/* feel free to modify the alignment with top, left */
#menu ul li a{
display: block; font-weight:bold; padding:5px; margin:0; height:20px; width:100px;
}
/* you can specify more style rules for the color and font-family of the top links as well as the width.
you can have a more specific width for each language by having a small css that overides the general rules. Same css file name but in a language specific folder.
*/

#menu ul li ul{
position:absolute;
top:20px; /* adjust to display just below corresponding top link without any vertical gap */
left:0px;
width:135px;
margin:0;
padding:0px;
display:none;
z-index:100;
border: solid 1px #939E52 /* draw a border around sub-menu */
}
#menu ul li ul li{
margin:0;
padding:0;
width:100%
}

/* you should give each pop-up menu (i.e #menu ul li ul ) a unique ID so you can specify the width for each one of them and not have the same with for all.
To prevent the sub menu from disappearing on hover, set the margin to 0 for all links in submenus i.e

#menu ul li ul li a{
display:block;
width:100%;
margin:0;
padding:2px;
border-bottom: solid 1px #939E52; /* separator for sublinks */
}

This should solvew most of the issues mentioned above.
Reply With Quote
  #3 (permalink)  
Old 07-16-2007, 03:26 AM
WebProWorld New Member
 

Join Date: Sep 2005
Posts: 21
trancehead RepRank 0
Default Re: IE 6 and drop down menu issues

thanks Holyhttp, it seems I found a solution that worked for me. If I find any bugs in it I'll definitely give your solution a go.
__________________
www.cybercellar.com - Buy South African wine online
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
css drop down menu pagetta Graphics & Design Discussion Forum 1 06-26-2007 09:26 AM
CSS Menu Issues in FF ackerley1 Graphics & Design Discussion Forum 2 06-09-2007 11:23 PM
Drop down menu dion2 Graphics & Design Discussion Forum 5 09-19-2006 07:13 PM
Javascript menu issues ADAM Web Design Web Programming Discussion Forum 3 06-27-2005 10:57 AM
Drop down menu bradh888 Search Engine Optimization Forum 1 07-08-2004 10:42 AM


Search Engine Optimization by vBSEO 3.2.0