Results 1 to 2 of 2

Thread: borders for separate rows?

  1. #1
    Join Date
    Dec 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default borders for separate rows?

    Hi,

    Is it possible to set separate boders for individual rows in a single table?

    thanks,
    jimo

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    yes

    HTML Code:
    <table>
        <tr style="border: 1px solid #000000">
             <td>something</td>
             <td>something</td>
             <td>something</td>
        </tr>
        <tr>
             <td>something</td>
             <td>something</td>
             <td>something</td>
        </tr>
        <tr class="border-black">
             <td>something</td>
             <td>something</td>
             <td>something</td>
        </tr>
    </table>
    Code:
    tr.border-black {
          border: 3px solid #00000;
    }
    you can have inline like I did with the first row or you can have a class like I did with the third row. the possibilities are endless... but you can assign borders 3 ways.
    external style sheet - if its going to be used in multiple tables
    embedded style sheet - if the style is only going to be used on this page
    inline style sheet - style is only used on this element

Bookmarks

Posting Permissions

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