Solved

CSS (line height?) issue

Posted on 2016-08-01
2
60 Views
Last Modified: 2016-08-01
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.
0
Comment
Question by:lvollmer
2 Comments
 
LVL 1

Expert Comment

by:David Kelly
ID: 41738128
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.
0
 
LVL 9

Accepted Solution

by:
Prasadh Baapaat earned 500 total points
ID: 41738130
Hi lvollmer,

you can add this line of code in your LAYOUT.CSS  file AT THE LAST...(Or in any custom.css file you have added for custom css & which loads last)

div#maximenuck ul.maximenuck li ul.maximenuck2 li.maximenuck {
    width: 240px;
}

Open in new window


IDEALLY you should edit your maximenuck.php file and add the width value.... but I guess the above solution will solve your problem if you are not comfortable dabbling with plugin files.

let me know the outcome,
Prasadh
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Position not returning 2 48
Host asp.net pages 5 25
Apply tab index in forms 6 34
compact pure CSS Read More Toggle 4 24
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now