Center the Horizontal CSSMenu in IE 6 and 7
Posted: Sun Mar 30, 2008 1:43 pm
I have the Horizontal CSSMenu in place on a site I am developing. I would simply like to center the menu under the header. The way I have the stylesheet setup works perfectly in Safari, Firefox (both Mac and Windows) and Opera but sadly not in Internet Explorer (specifically IE 6 & 7) Does any one have any insight as to how to get around this without pseudo-centering as previously suggested in the forums.
The link:
http://laguz.pair.com/marketum/_cmsms_ccfm/
And a little CSS:
#menu_vert {
background: #fff url(_assets/ccfm_navigation.gif) no-repeat 0 0;
height: 35px;
width: 800px;
text-transform: lowercase;
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
}
#primary-nav li li {
width: 200px;
}
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0;
padding: 0;
display: table;
margin: 0 auto;
}
The link:
http://laguz.pair.com/marketum/_cmsms_ccfm/
And a little CSS:
#menu_vert {
background: #fff url(_assets/ccfm_navigation.gif) no-repeat 0 0;
height: 35px;
width: 800px;
text-transform: lowercase;
}
/* The wrapper clears the floating elements of the menu */
/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper {
/* Fix for Opera 8 */
/* overflow: hidden; */
}
#primary-nav li li {
width: 200px;
}
#primary-nav, #primary-nav ul {
list-style: none;
margin: 0;
padding: 0;
display: table;
margin: 0 auto;
}