View Full Version : center table?

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 {

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.