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 4 of 4

Thread: CSS Inheritance

  1. #1
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts

    Unhappy CSS Inheritance

    Hi.

    I am still relatively new to the art of making things looking pretty using CSS (I am more used to doing the back-end nuts-and-bolts programming stuff!).

    I am having a wonderfull time trying to establish which style sheet properties are inherited and which are not! I noticed some funnies in a few test pages that I had written, so I decided to do a test - and I discovered that certain style sheet properties which are documented as not being inherited do, infact, appear to be inherited!

    Furthermore, some of the documentation that I have read actually contradicts itself!!!!!

    My query is twofold:

    (1) Is there a CSS specification document (in the same way that there is the ANSI standard for C compilers) which I can 100% trust?

    (2) Is there any way of manually controlling the inheritance of style sheet properties when defining a style sheet? (e.g. - I might want to make text-transform inherited in one instance, but not in another).

    TIA,
    Mike

  • #2
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts
    I am having a read of the CSS specifications which appear in the pinned post at the top of this forum on CSS documentation. (which answers my question 1).

    I notice there are 3 CSS standards - is it a simply a case that CSS3 supersedes CSS2, etc, or should I be picking the one that best suits my application? If so, how do I chose which one to use?

    My question 2 is still pending ...

    TIA again,
    Mike.

  • #3
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    CSS3 is still a working draft, so it is not a recommendation, so browsers support extremely little of it, that said, no browser has full support of CSS 2.1, which should be used, as it is the latest recommendation, and is mostly supported.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Inheritance

    Inheritance is actually the thing most browsers pretty much get right; if you can supply some specific cases to examine, maybe we can help out.

    As Geoffrey (Error 404) already mentioned, CSS level 2 revision 1 (or CSS 2.1) is your best bet, even though it still is a candidate recommendation, but it contains most properties modern browsers actually support whereas CSS 2, although being a "full" recommendation, contains a number of properties no browser ever bothered to support (and which were dropped in revision 1).
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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