CSS and xhtml tables

Discussion in 'HTML & Website Design' started by torchsonghq, Jun 10, 2009.

  1. #1
    Hi.
    Currently I'm using WordPress system for one of my website. The theme forces every border, margin and padding to be at 0. All's good except that if I want to use tables, borders will always be 0. If I try to play around with theme's CSS file, layout crashes.

    I've tried the xhtml tables, but only made it so that outside borderline of the table worked. Inside (cells) borders still don't appear.}

    I added the following:

    .special {
    border: 1px dotted silver;
    margin: 5px;
    padding: 5px;
    }

    and classed my table to class=special.

    Any ideas how to fix the table problem?

    Thanks a million! :D
     
    torchsonghq, Jun 10, 2009 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    table cells are <td> so if table uses a class named special then try

    .special td {
    border: 1px dotted silver;
    }
     
    qazu, Jun 11, 2009 IP
  3. torchsonghq

    torchsonghq Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you so much!
    I'll try that and tell you how it went!
     
    torchsonghq, Jun 11, 2009 IP