Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: inherited css ?

  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Sacramento, California
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    inherited css ?

    When i look on a css site i see a table column that says inherited
    followed by yes/no! does this mean that only these ones apply to everything on the page and the others do not. Or does it mean it inherited thru different elements on the page?
    Hairynugs


    Simple is best.

  • #2
    umm
    umm is offline
    Regular Coder
    Join Date
    Sep 2002
    Location
    Antipodes
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [update] Not sure about the table inherited=yes. It may be something to do with width computation.

    <!-- old message

    Basically, inherit means that some css defintition is inherited from a 'parent' element. For example:


    <div style="color: blue">

    <p style="color:inherit">
    This paragraph inherits the text color from the parent div. In this case the inherited color will be blue
    </p>

    <p style="color:red">
    This paragraph inherits the text color from the parent div. In this case the inherited color will be red
    <br/>
    <span style="color: inherit;font-style:italic">span inherits the red style in it's parent paragraph</span>
    <p>

    </div>

    -->

    Inheritance can be tricky. Watch for unintended inheritance effects on relative font units such as the "em".
    Last edited by umm; 09-10-2002 at 06:19 AM.

  • #3
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    the inherit property value is buggy in all current browsers, especially in any heirarchy containing tables.

    The combination of bugs and thin support has convinced most developers not to depend on it just yet.
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&


  •  

    Posting Permissions

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