Link to home
Start Free TrialLog in
Avatar of Larry Vollmer
Larry Vollmer

asked on

CSS (line height?) issue

I have this site:
http://goo.gl/I8MfDU

There is a pretty ugly navigation menu at the top. If you mouse over "commercial" you will see that some of the child nav items break to a new line. It doesn't do that in the other parent navs . I can't figure out what bit of CSS is causing this for the life of me. Another set of eyes would be much appreciated.
Avatar of David Kelly
David Kelly
Flag of United States of America image

I'm not sure what caused it in the first place, (I suspect it's an inherited float from someplace, but there are so many "!important" declarations complicating the inheritance I can't be sure).

You can "fix" it with this on the menu items actual anchor link (#maximenuck ul.maximenuck li.maximenuck a): [white-space: nowrap;] as long as you aren't worried about them EVER needing to wrap.

NOTE: "Property Managers Lounge" under "Commercial", and "Articles of Interest" under "Community" are not getting the same hover styles that the rest of the menu gets either. Also, I HIGHLY recommend avoiding the use of !important declarations unless you literally have no choice! They seem generously sprinkled throughout your CSS, and that's a recipe for future maintenance problems. You don't want to find yourself having to add them "everywhere" simply because you can't track how they're being inherited.
ASKER CERTIFIED SOLUTION
Avatar of Prasadh Baapaat
Prasadh Baapaat
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial