Horizontal Menu 2nd Level Doesn't line up directly below first level in IE.

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
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

Horizontal Menu 2nd Level Doesn't line up directly below first level in IE.

Post by jeffunk »

This is just a tip, so that I never have to debug this problem again.

The problem:
I have a horizontal menu with a top level and some menu items containing children, in Firefox everything is cool.  In IE the child menu items are shifted so that their menu item lines up starting directly in the middle of the parent item.  Not as planned.

Solution:
I had aligned the text in the parent level menu using

Code: Select all

text-transform:center;
in the CSS sheet.  I moved this line to apply only to the anchor items in the child level line items and added

Code: Select all

text-transform:left;
where it seemed appropriate. 

That fixed it.  That'll teach me for messing around in the section labeled

Code: Select all

/* Unless you know what you do, do not touch this */ 
;D
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Horizontal Menu 2nd Level Doesn't line up directly below first level in IE.

Post by KO »

I never heard that you can use "text-transform:center;" or left. I thought it was "text-align:center" or left/right/justify
Post Reply

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