The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How can I put in the middle of the menus?
I want to display menus in the middle of the header and resize the browser’s menus are also in the middle Of course, I margin: auto, but I also do not work
http://jsfiddle.net/psot98/czqKV/4/embedded/result/
header .center { background: url(../images/header-center.png) no-repeat; width: 510px; height: 100%; /*margin: auto;*/
}
No reason why that shouldn’t center the .center div if it a width and margin: auto.
.center
Height 100% probably won’t work though. Try adding a defined value.