Results 1 to 5 of 5

Thread: css help

  1. #1
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default css help

    Hello

    Mz Style sheet
    Code:
    .tablestyle
    {
    border-color:#000000;
    border-style:solid;
    border-width:thin; 
    }
    My html page
    Code:
    <link rel='STYLESHEET' type='text/css' href='mystyle.css'>
    Inside my HTML page i have alot of tables.. Is there a way i can use my style sheet without adding the class to every single table??

    Thank you.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Is there a way i can use my style sheet without adding the class to every single table??
    You want to apply this to every table?
    Code:
    table
    {
      border-color:#000000;
      border-style:solid;
      border-width:thin; 
    }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    You want to apply this to every table?
    Code:
    table
    {
      border-color:#000000;
      border-style:solid;
      border-width:thin; 
    }
    yes...

    but i don't want to add the tag (in red) to the tables.

    Code:
    <table>
    <tr>
    <td class="tablestyle">
    ....
    </td>
    </tr>
    </table>
    Is there any way ???

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, and I just gave you CSS to do exactly that I noticed you applied the class to the TD, not the table, in your example. If this is what you want, replace "table" with "td" in my code.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ohhh thanks..I didn't understand it b4 ^^

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
  •