Hi all,
I have an issue with a nav UL I need centred, it is centred on browsers except IE6 and IE7.
The code is as follows:
<body>
<div id="nav-container">
<ul id="nav">
<li><a class="active" href="#">One</a> /</li>
<li><a href="#">Two</a> /</li>
<li><a href="#">Three</a> /</li>
</ul>
</div><!--nav-container-->
</body>
#nav-container { background:#fff; margin-bottom:55px; position:relative; text-align:center; width:100%; z-index:20; }
#nav { display:inline-block; margin:0; overflow:hidden; }
#nav li { float:left; height:63px; line-height:63px; margin-right:5px; }
Does anyone have any idea why this won’t float in IE7?
Any help would be amazing.
Thank you!