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 3 of 3

Thread: cellpadding=0

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cellpadding=0

    what is the equivalent of cellpadding=0 for CSS2 ?

    I have tried

    .myTable
    {

    padding:0px;
    border-spacing:0px;
    border-collapse:collapse;
    }

    but it doesn't work at all

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    253
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try adding the margin and border properties too.

    .myTable
    {
    padding:0px;
    border-spacing:0px;
    border-collapse:collapse;
    margin:0px;
    border:0px;
    }

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    doesn't work

    yes I did it but it doesn't work

    .tb_one
    {
    width:780px;
    height:147px;
    background-color:#FF0066;
    border:0px;
    padding:0px;
    border-collapse:collapse;
    border-spacing:0px;
    margin:0px;
    }

    ----------------------------------------
    <TABLE class="tb_one">
    is different than
    <TABLE class="tb_one" cellpadding="0">

    seems that CSS2 cannot replace cellpadding="0" for IE6


  •  

    Posting Permissions

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