[SOLVED] IE7 bug? Extra space in menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jocando
Forum Members
Forum Members
Posts: 50
Joined: Thu Feb 19, 2009 4:20 pm

[SOLVED] IE7 bug? Extra space in menu

Post by jocando »

Hi

I've created a basic website using CMSMS 1.5.4.  I've adapted the 'CSSMenu Vertical' spreadsheet, and found there's a problem with the menu in IE7.  There's a small gap (1px?) appearing at the top of each so the sub-menu keeps disappearing as you hover it.  It's fine in all other browsers.

Here's what it should be like:
Image

Here's what it's like in IE7:
Image

Any ideas what's wrong?

Thanks
Jo
Last edited by jocando on Tue Jul 07, 2009 1:39 pm, edited 1 time in total.
jocando
Forum Members
Forum Members
Posts: 50
Joined: Thu Feb 19, 2009 4:20 pm

Re: IE7 bug? Extra space in menu

Post by jocando »

Hi

When I initially posted this, I thought it was an IE8 problem.  Turns out I was in compatibility view, and IE8 is fine.  HOWEVER, the problem was still occuring in IE7.

I know it's some kind of whitespace bug, but there's already a hack in the stylesheet to cope with that.  After a LOT of trial and error, adding a line-height of 1.1em or more seems to fix it.

#primary-nav a {
line-height: 1.1em;
}

Jo
Post Reply

Return to “Layout and Design (CSS & HTML)”