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

Thread: CSS question?

  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS question?

    I have a table with 61 rows and 4 columns. Names, email, phone,
    affiliation.

    I want to have a solid 1px bottom border for each row. But I am not
    smart enough with CSS to figure out how to do this without giving a
    class to each TD (there are 244 of them) And I want there to be about
    8px of margin underneath that border, or before the next person's name.

    How could I do this? I just want a bottom border. I've tried giving the
    <tr> a class that has a border-bottom assigned to it, but haven't been
    able to make it work.

    Thanks!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I want to have a solid 1px bottom border for each row. But I am not
    smart enough with CSS to figure out how to do this without giving a
    class to each TD (there are 244 of them) And I want there to be about
    8px of margin underneath that border, or before the next person's name.
    Code:
    table{
    corder-collapse:collapse;
    }
    td{
    border:1px solid #000;
    padding-top:8px;
    }
    ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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