Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: center table?

  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    center table?

    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
    }

  • #2
    Regular Coder
    Join Date
    Dec 2006
    Posts
    166
    Thanks
    9
    Thanked 4 Times in 4 Posts
    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.
    Last edited by 194673; 12-30-2006 at 07:04 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •