I need to center my superfish menu's categories (I have only 4) so they will be to the center and nicely positioned, not left-aligned. I've tried anything with css etc but i can't make it work...

Thanks

Comments

aconcept’s picture

Assigned: aconcept » Unassigned
danpros’s picture

Hi,

Please write this in style.css after this

#superfish .sf-shadow ul.sf-shadow-off {
background: transparent;
}

Write this

#superfish .menu ul a{
text-align:center;
}

Update: I already edited the code above, I wrote text-align:left; but its should text-align:center;

Dan

jleroi’s picture

I was just working on the same thing.

Dan, I didn't see any difference with the above entry.

If I go to:

#superfish .menu a

and add

left:50%

I can get all of the text to move to center but haven't figured out how to move the drop-down backgrounds over.

Thanks for the help. This is a great theme.

jleroi’s picture

Sorry, my mistake. I just realized that the question was specific to the 7.x version. I'm using 6.x so there are probably differences.

danpros’s picture

Version: 7.x-1.0-rc2 » 6.x-2.1
Status: Active » Closed (fixed)

Hi,

Okay I will close this one.

aconcept’s picture

Version: 6.x-2.1 » 7.x-1.0-rc2
Status: Closed (fixed) » Active

sorry but this code did not help at all... I'm still trying to do this with no luck

danpros’s picture

@aconcept: did you already refresh the page or clear your cache?

aconcept’s picture

yes of course :)
i'm doing it now by just adding a padding-left manually but this is not the best solution... i don't know which css property forces it to go to the left...

Athreid’s picture

Hi!

I use Drupal 7 and Danland, and i want center the butons/categories of my menu (superfish) but i don't found any solution to do it.

If i write:

#superfish .menu ul a{
text-align:center;
}

there is no change (I refresh the page and clear my cache).

Any solution please ?

Thank you.

Anonymous’s picture