Thanks All,
The {margin: auto;} seems to have done the trick (with or without the added "0") in the 4 browser tests I've made. Er... can someone explain why "auto" center aligns things? Or does it always?
I'm still having a problem trying to center a CSS horizontal nav bar though. Any further help here appreciated. Here's the code thus far:
#navcontainer
{ margin-top: 2px; padding: 0 0 0 0px; }
#navcontainer UL
{ list-style: none; margin: 0; padding: 0; border: none; }
#navcontainer LI
{ display: block; margin: 1px; padding: 0; float: left; width: 186px; text-align: center; }
#navcontainer A
{ color: #111111; display: block; width: auto; text-decoration: none; background: #75A3D1; font-size:10px; font-weight: bold;
margin: 0; border-left: 1px solid #EEEEEE; border-top: 1px solid #EEEEEE; border-right: 1px solid #777777;
border-bottom: 2px solid #777777; padding-left:1; padding-right:1; padding-top:4; padding-bottom:4; }
#navcontainer li A:hover, #navcontainer li A:active
{ background: #88AA33; }
#navcontainer li a:link.active, #navcontainer li a:visited.active
{ position: relative; z-index: 102; background: #BBBBBB; font-weight: bold; }
#homepage #nav-homepage, #ironmongery #nav-ironmongery, #signs #nav-signs, #contact #nav-contact
{ background: #88AA33; }
And the HTML:
<div id="navcontainer">
<ul id="navlist">
<li><a href="../../" title="zzz">Temple Graphics - Home</a></li>
<li><a href="../../" title="zzz">Architectural Ironmongery</a></li>
<li><a href="../../" title="zzz">Bespoke Signage</a></li>
<li><a href="../../" title="zzz">Messages & Enquiries</a></li>
</ul>
</div>
Thanks for any offers