Give individual cell's a border?

Discussion in 'Javascript' started by Harry, Oct 23, 2003.

  1. Harry

    Harry Guest

    I would like to have just the top row cells of a table to have borders - is
    this possible/easy? or do I have to make the title row another table?

    thanks

    harry
     
    Harry, Oct 23, 2003
    #1
    1. Advertising

  2. Harry

    Evertjan. Guest

    Harry wrote on 23 okt 2003 in comp.lang.javascript:
    > I would like to have just the top row cells of a table to have borders
    > - is this possible/easy? or do I have to make the title row another
    > table?


    No js, just css:

    <style>
    tr.frst td {border:green solid 1px;}
    </style>

    <table>
    <tr class="frst"><td>x</td><td>y</td></tr>
    <tr> <td>x</td><td>y</td></tr>
    </table>



    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Oct 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    2,293
    tshad
    Jan 31, 2005
  2. phl
    Replies:
    1
    Views:
    4,388
    Martin Jay
    Jun 8, 2006
  3. Coder
    Replies:
    1
    Views:
    717
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  4. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    border-color: #003366; border-width: 2px;

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Jul 17, 2006, in forum: HTML
    Replies:
    64
    Views:
    3,598
    Adrienne Boswell
    Jul 30, 2006
  5. TS
    Replies:
    5
    Views:
    772
    Jeffrey Tan[MSFT]
    Aug 10, 2005
Loading...

Share This Page