Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS (line height?) issue

Posted on 2016-08-01
2
Medium Priority
?
98 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 2

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 10

Accepted Solution

by:
Prasadh Baapaat earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

971 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