On 8/24/2012 4:20 PM, Ursula Pieper wrote:
Greetings,
I can't figure out how to center the top menu in:
http://salilab.org/salilab_drupal/
I have tried to add:
margin-left: auto;
margin-right: auto;
width: 100%;
I aded this to a number of places in the stylesheet, and can't figure
out why it's not working.
I'd greatly appreciate, if somebody could have a look, and let me know
what's wrong.
Hi Ursula,
There really is no excuse for the amount of CSS being used for that
site. The bottom line is that you need to set the UL to display
inline-block and its parent to text-align center. This is quite easy
when the CSS is efficiently written, but in your case you will need to
wade through all of the excess and duplicate CSS to deploy the above
menu where it will work without specificity issues or cascade conflicts.
--
Al Sparber - PVII
http://www.projectseven.com
The Finest Dreamweaver Menus | Galleries | Widgets
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/