how to set table border on desired side

Discussion in 'CSS' started by kalaid, Jul 7, 2007.

  1. #1
    Hi,

    In my table i want to set borders for the rows and not for the columns.

    (ie,a line only between the rows and not between columns) . Plz help me to do this
     
    kalaid, Jul 7, 2007 IP
  2. Gangsta

    Gangsta Active Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    for example:
    <tr style="border-top:1px #000000 solid">....
     
    Gangsta, Jul 7, 2007 IP
  3. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #3
    TR? Wouldn't it be TD or TABLE?

    Don't forget to collapse your borders, or it will look weird.

    table {
    border-collapse:collapse;
    border-right:1px solid red;
    }
     
    soulscratch, Jul 7, 2007 IP
  4. kalaid

    kalaid Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,
    Thanks for ur reply. Now it is working
     
    kalaid, Jul 15, 2007 IP