SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    specify different <td>s using css

    i need more than 1 different 'sort' of <td>...

    ...some <td> should have width="100px", some have to be bigger,...

    i'm already within 'div#main div.content'

    i can see that
    Code:
    div.content td { width: 100px;}
    gives me what i need, but this will apply for all the <td>s...

    i have tried something like 'div.content td2' (in order to specify the name given to the <td>) but it doesn't work...

    ...help annyone?
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  2. #2
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    got it! got it!

    just tryed the following and it seems to work:
    Code:
    td.name { width: 100px;}
    td.anothername { width: 200px;}
    
    and call it:
    <table>
     <td class="name">data1</td>
      <td calss="anothername">data2</td>
    </table>
    whoppydoo!
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


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
  •