Forum Moderators: not2easy

Message Too Old, No Replies

Centering

Centering

         

neroag

10:16 am on Nov 17, 2006 (gmt 0)

10+ Year Member



Hi Guys

Im trying to center the following within a table But cant seem to get it to work using align="center" it always stays to the left of the table, can anyone help please?

HTML
<div class="sizeselect">
<a href="A-products">A</a>
<a href="B-products">B</a>
<a href="C-products">C</a>
</div>

CSS
.sizeselect a {
FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica, Sans-serif;

margin: 3px 6px 15px 0px;
border: 1px solid #949495;
color : #ffffff;
padding-top: 3px;
padding-bottom: 3px;
width : 40px;

font-size: 10px;
font-weight : bold;
text-decoration : none;
float: left;
background-color: #081589;
text-align: center;
}

Geoffrey james

11:07 am on Nov 17, 2006 (gmt 0)

10+ Year Member



try

<div id="sizeselect">
then at top of css instead of .sizeselect change to:

div#sizeselect {
font-family: Tahoma, Verdana, Arial, Helvetica, Sans-serif;
margin: 3px 6px 15px 0;
border: 1px solid #949495;
color : #fff;
padding-top: 3px;
padding-bottom: 3px;
width : 40px;

font-size: 10px;
font-weight : bold;
text-decoration : none;
float: left;
background-color: #081589;
text-align: center;
}

hope helps...geoff