.sf-menu.sf-style-default a {
border-left: 1px solid #FFFFFF;
border-top: 1px solid #CFDEFF;
padding: 0.75em 1em;
text-decoration: none;
}

The above padding spec causes the bottom of the menu item text to fall below the bottom of the menu bar. It also causes the text to be lower than the auto arrow. It also causes the items in the sub-menu to have huge interline spacing.

I have tried the advanced HTML and advanced CSS options. No matter what I put in it gets overridden by the above style.

I do not have these problems in the 1.8-alpha5 version.

Comments

mehrpadin’s picture

May I see a screenshot?

ssg13565’s picture

Well, I did find the following style works:

.short
{
padding-top:0 !important;
padding-bottom:0 !important;
}

Then I specify the short class under Custom classes for the main UL, for the list items, for the hyperlinks.

One reference I read said, "!important is still mostly a hack around the basic rules and is something you should never need if you understand how the rules work."

ssg13565’s picture

Screen shots of one and two level menu display with and without padding.

mehrpadin’s picture

Hey Steven,

Set the "Style" option of your Superfish block to "None". (Administer > Site building > blocks > your Superfish block > config > Style to be "None")

ssg13565’s picture

StatusFileSize
new8.26 KB

If I set the "Style" to "None", then when the menu drops down, the drop down part is almost invisible.

Notice the drop down under Event. It doesn't pull the background with it, so the white characters for Future Events and Past Events are almost impossible to see.

So far, my hack css override is the only solution that works for me.

APCI LLC’s picture

Version: 7.x-1.9-beta1 » 7.x-1.8
StatusFileSize
new64.75 KB

I have the same problem in 1.8. I have to switch to style = None to fix the padding and keep the right colors, etc. but when I do that the arrows end up over the text and the drop-downs have no background color. Screen shot attached.

mehrpadin’s picture

Hey Kevin,

Just add this to your CSS:

.sf-menu a.sf-with-ul {
  padding-right: 2.25em;
}

:)

numskull’s picture

Issue tags: +CSS, +superfish

This worked for me as an alternate style for links:

.fix-menu-link {
padding: 0px 2.25em 0px 1em !important;
}

Shouldn't need to use !important. My custom css shouldn't be overridden.

mehrpadin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -CSS, -superfish, -padding

Automatically closed -- issue fixed for 2 weeks with no activity.