#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    167
    Rep Power
    12

    how do you create this in css?


    hi,

    this are the attributes on one of my table:

    border="1" cellpadding="5" cellspacing="0" bordercolor="#EBEEF3"

    i need the cells to have borders, the table to have space between cells.

    i cannot create the style on a td because i use td on other instances where i don't need the space between the cells.

    many thanks.
    http://www.csi-empoweringpeople.com/
    Professional low cost offshore website design and development using Drupal.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2003
    Posts
    804
    Rep Power
    101
    Are the 'other instances' on a different table or on the same table? If they are on the same table, try TBODY.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    167
    Rep Power
    12
    other instances would be on other tables.

    for instance, navigational panel which consists of images tabs are place in tables. it would destroy the layoutif it would also be affected by the padded.
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2003
    Posts
    804
    Rep Power
    101
    Just put those attributes in the table tag... it would only affect the table you put them in. Will that work, or do you want to do it with CSS? I do not know the corresponding CSS styles, but you could use a named style:
    Code:
    <style>
    .namedstyle {
      put style definitions here...
    }
    </style>
    
    <table class="namedstyle">
    ...
    </table>
    The named style will only be used for tables of class "namedstyle". Obviously you can and should change that to be something more descriptive of what you are doing...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    167
    Rep Power
    12
    hi,

    that doesn't work.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Canberra, Australia
    Posts
    348
    Rep Power
    14
    try moving the class to the td or tr

    for example:

    td class="

    tr class="
  12. #7
  13. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    FL
    Posts
    248
    Rep Power
    14
    PHP Code:
    <style type="text/css">
    td {
    padding5px;
    border#EBEEF3 solid medium}
    </style
    That works for everything but the cellspacing, i have no idea how to space in CSS. What you can do, it go and put that in your head tags, and just put the cell spacing in your table tags,

    hope that helps,
    --Lone~
    "A building has integrity just like a man. And just as seldom."
    Rand

IMN logo majestic logo threadwatch logo seochat tools logo