Center Menu
Permalink Browser Info Environment
I've managed to realize a lot of my wishes in the Slate main.css stylesheet, but one thing I cant figure out is how to center the (whole) menu. I think I would have to put "margin-left: auto;
margin-right: auto;" somewhere in the menu div, but I don't know where to find it.
Can you help me out?
margin-right: auto;" somewhere in the menu div, but I don't know where to find it.
Can you help me out?
Type: | Discussion |
---|---|
Status: | New |
c5mix, thanks. I've tried to add
But it screws up the menu. The hovers don't work correctly anymore for example. I can't get the posisioning right this way.
/* Centre the Menu */ .sf-menu { float: left; position: relative; left: 50%; } .sf-menu ul li { left: 0%; } .sf-menu li { left: -50%; }
But it screws up the menu. The hovers don't work correctly anymore for example. I can't get the posisioning right this way.
http://www.zigpress.com/2013/01/19/how-to-centre-a-superfish-dropdo...