...

View Full Version : center table?



nikko50
12-30-2006, 06:38 AM
How can I center a table with css. I have the below but it does'nt work.

TABLE.forms {
width: 80%;
border: 0 solid #9999FF;
font-weight: normal;
font-size: 10px;
margin: auto auto;

}

TABLE.forms td {
font-color: BLACK;
font-weight: normal;
font-size: 10pt
}
TABLE.forms tr {
align:left
}

194673
12-30-2006, 07:53 AM
When you wrote margin: auto auto;
Try getting rid of one auto because it applies to all margins. Just a guess XD.
I suck with CSS so don't trust me though.
Edit: It also might help to post the HTML. I just tried it with the auto and the double auto s and the result is the same.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum