Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
aconcept CreditAttribution: aconcept commentedComment #2
danpros CreditAttribution: danpros commentedHi,
Please write this in style.css after this
Write this
Update: I already edited the code above, I wrote
text-align:left;
but its shouldtext-align:center;
Dan
Comment #3
jleroi CreditAttribution: jleroi commentedI 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.
Comment #4
jleroi CreditAttribution: jleroi commentedSorry, 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.
Comment #5
danpros CreditAttribution: danpros commentedHi,
Okay I will close this one.
Comment #6
aconcept CreditAttribution: aconcept commentedsorry but this code did not help at all... I'm still trying to do this with no luck
Comment #7
danpros CreditAttribution: danpros commented@aconcept: did you already refresh the page or clear your cache?
Comment #8
aconcept CreditAttribution: aconcept commentedyes 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...
Comment #9
Athreid CreditAttribution: Athreid commentedHi!
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:
there is no change (I refresh the page and clear my cache).
Any solution please ?
Thank you.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedcheck danland thme handbook
http://drupal.org/node/768350#setup-superfish
http://drupal.org/node/768350