This is a discussion on "CSS Drop-down navigation" within the Web Page Design section. This forum, and the thread "CSS Drop-down navigation are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Drop-down navigation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Drop-down navigation
Hi
I'm hoping somebody can help me with this please. I've built a new CSS based ul li /li /ul based nested navigation for my site which you can see here on a demo page: http://www.aditnow.co.uk/error.htm The idea is basic, if you move over a menu item that has a sub-menu (e.g. 'Browse Forum' under 'Mine Exploration Forum' a side menu (nested ul li list) pops out. If that has a sub-menu (e.g. 'UK Mine Exploration Forums') then another side menu (nested ul lu list) pops out again. It works very well in Internet Explorer 7, Firefox and Safari, but in Internet Explorer 6, when you move over a menu item that has sub-menus the item below the menu item (i.e. the parent) bumps down about 12px. It's to do with the display: block switch on the over/hover class which I know because if I set the nested blocks to display: block by default then the same padding appears in Internet Explorer 6. Probably easier to see it in practice than follow that description though This is my first post here so I don't know if I'm supposed to post the CSS, but in case not it can be seen at: http://www.aditnow.co.uk/css/1/styles2.css With the relevant bit for the navigation starting fairly near the top after the /* navigation */ comment. Any help very gratefully received. Thanks, Simon |
|
|
|
||||
|
Re: CSS Drop-down navigation
Use an IE conditional and an IE 6 specific style sheet to correct it. I would guess. I will look again when I have a bit more time.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: CSS Drop-down navigation
Thanks moojoo, appreciate it. I can't lock down what is causing the problem in IE 6 though, causing the white space to appear under the parent menu item, so at this stage wouldn't know what to tweak in a conditional stylesheet.
Thanks, Simon |
|
||||
|
Re: CSS Drop-down navigation
Ok tested it in IE 6. I see what is happening..
try adding width:100%; to the LI's and see if that doesn't fix it. IE 6 has a old bug with adding space between LI's.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: CSS Drop-down navigation
I had something similar a few month back.
Try defining height in your hovers. |
|
|||
|
Re: CSS Drop-down navigation
Excellent thanks, that's nearly fixed it, it's now padding everything down a bit in both IE 6 and IE 7. But at least that suggests I'm getting closer to a fix. Thanks.
|
|
|||
|
Re: CSS Drop-down navigation
Thanks everybody for the input. |
|
|||
|
Re: CSS Drop-down navigation
I've rebuilt it, and got it working correctly in Mozilla, Firefox, IE7 and Safari. But at the expense of removing the 1px white border-bottom from the li elements and of it working in IE6.
In IE6 the padding is back when you mouseover an li element that has 2nd or 3rd level sub-menu. If I put the 1px white border-bottom back in this padding disappears; but at the trade-off that the sub-menus vanish part way down in IE 7. I seem to be going round in circles, and have never had so many problems with a menu like this! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Navigation | inkz | Web Page Design | 2 | Apr 22nd, 2008 15:33 |
| CSS Navigation Help! | crackafaza | Web Page Design | 3 | Jan 21st, 2008 15:56 |
| Drop down menus drop behind flash header | theGAME71135 | Flash & Multimedia Forum | 3 | Jan 10th, 2008 09:42 |
| CSS Drop Down Navigation is under lapping in Firefox | cpando1974 | Web Page Design | 9 | Apr 26th, 2007 10:56 |
| CSS navigation | AdRock | Web Page Design | 1 | Jul 15th, 2006 10:56 |