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
  1. #1
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cellspacing/padding in css

    i have this in my html page

    <table cellpadding=0 cellspacing=0>

    Can i control that cellspacing and padding in my style sheet?

    syntax

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    padding:10px;
    Or
    padding-left:5px;
    padding-top: etc etc

    Can't remember how to do cellspacing

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    <html>
    <head>
    <title>untitled</title>
    <style type="text/css">

    table {
    border-collapse: collapse;
    background: saddlebrown;
    }

    td, th {
    width: 200px;
    height: 50px;
    margin: 0px;
    padding: 0px;
    border: 3px gold groove;
    }

    </style>
    </head>
    <body>
    <br>
    <table>
    <tr>
    <td></td><td></td>
    </tr><tr>
    <td></td><td></td>
    </tr><tr>
    <td></td><td></td>
    </tr>
    </table>
    </body>
    </html>

    http://lists.evolt.org/index.cfm/a/h...&orderdir=DESC


  •  

    Posting Permissions

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