SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: inhertance?

  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Narnia
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    inhertance?

    i'm am having problems with my css rules not being inherited in tables. for example:

    <html>
    <head>
    <title>Untitled</title>
    <style>
    body {
    font-family: Verdana;
    font-size: 12px;
    }
    </style>
    </head>
    <body>
    <p>This is sample text. This is sample text.</p>
    <table>
    <tr>
    <td>This is sample text. This is sample text.</td>
    </tr>
    </table>
    </body>
    </html>

    when you look at this, the font-size rule is ignored for the text in the table. is this the way its supposed to work?

    thanks

  2. #2
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've just tested ion Win XP with Firebird, Opera 7.21 and IE6 in an XHTML 1.1 document - and whatever I make the font-size they all appear the same. What's your browser/OS?
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Narnia
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks john. when i use the xhtml 1.X doctype it works fine. when i use the html 4.01 doctype i get the issue described above. thanks for the help.

    Quote Originally Posted by John Colby
    I've just tested ion Win XP with Firebird, Opera 7.21 and IE6 in an XHTML 1.1 document - and whatever I make the font-size they all appear the same. What's your browser/OS?

  4. #4
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gkrueger
    when i use the xhtml 1.X doctype it works fine. When I use the html 4.01 doctype i get the issue described above.
    I'm curious, which browser? or it is all?

    Regards to the lion.
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  5. #5
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,797
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    In quirks mode font settings do not get inherited into tables.

    Read all about it here:

    http://devedge.netscape.com/viewsour...table-inherit/

    Hope that helps.

    Paul


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
  •