I am a CSS novice unfortunately. I'm trying to figure out how to center the primary links in the garland theme, instead of having them be right justified. I've been hacking away, guessing at which section controls the positioning of the primary links.
I figure I probably just need to add something like:
margin: auto auto;
to some CSS section, but I can't figure out which one because I sux
can anyone please point me in the right direction?
thanks for any help you might be able to offer
Comments
Find this:
Find this:
And replace with:
Then find this:
And replace with:
Edit: You will also need to remove display:block from the links.
Find:
And replace with:
what version of garland are you working with?
Thanks for your help
It's not working for me though - your original code seems a bit different from what I'm seeing. For instance I don't have a "ul.primary-links a" section
I'm starting with the default garland that comes with drupal 5.1. And when I attempt to make the changes you suggest, the menu doesn't become centered, it becomes aligned to the left side instead of the right.
/** * Primary navigation