3 replies [Last post]
applied_CSS
applied_CSS's picture
Offline
newbie
MA
Last seen: 5 years 44 weeks ago
MA
Timezone: GMT-4
Joined: 2014-03-14
Posts: 2
Points: 3

at site: http://www.lampin.com

In the menu About - Careers - Blog - Contact
there is a dropdown under About -> News, History, Directions
I can't for the life of me get this to left align. I'm not quite sure what's forcing it right as when I check firebug there is nothing jumping at me. Or maybe I've been fighting it too long. Can anyone give me a hint?

helldog2004
helldog2004's picture
Offline
Enthusiast
Netherlands
Last seen: 3 years 24 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2014-03-02
Posts: 205
Points: 239

You can always try this: add

You can always try this:

add the following code into your style.css
.sub-menu {text-align: left;}

Check Maximum Webdesign for your online solutions

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 21 hours 46 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9749
Points: 3831

float right is the cause, proper cascade is the cure

Your sub menu li elements are inheriting (actually the ruleset is cascading down to the sub-menu) {float: right;}. The difficulty is that the cascade is poorly structured. If you edit line 756, of http://lampin.com/wp-content/themes/StyleShop/style.css?ver=3.8.1, to include {float: none;}, it gets overridden by a more specific selector. Try making the selector more specific. The same issue is happening with the height property, requiring the silliness of the "!important".

Fix the specificity and all should be OK.

.nav li li { display: block; padding: 0px; height: auto !important; }
(Gawd! That's ugly formatting. I don't think I've ever seen a WP theme or plugin
that was written by someone who had even a modicum of clue.)

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

applied_CSS
applied_CSS's picture
Offline
newbie
MA
Last seen: 5 years 44 weeks ago
MA
Timezone: GMT-4
Joined: 2014-03-14
Posts: 2
Points: 3

Thought it was just me with

Thought it was just me with WP! Thank you. Got it fixed based on your input.