Hey something that troubling me is the :inherit property within css.
I understand that say:
<div id="introduction">
<p>hdsfghhdgkhkhgkhgkhdkhdghkdhkdhgkhgk</p>
<p>lfjlfjljfljdlfjzldjldjg'lzj'jjdljglzjglkjg'ldjg'ldjg''g</p>
</div>
.
Then the <p> elements are children (descendants) of the <div> etc. In fact I get everything about Inheritance I think apart from why on earth the :inherit is at all useful?
I mean if you apply a style to the <div> all its descendants will 'inherit' that style as long as there isn't a conflicting style rule etc.
So when would I ever need to use the :inherit property? because descendants already inherit - and if there is no style rule for an elements ancestor then what could the element :inherit as such?
I am sure there is something subtle I must be not understanding here?
Andy
I understand that say:
<div id="introduction">
<p>hdsfghhdgkhkhgkhgkhdkhdghkdhkdhgkhgk</p>
<p>lfjlfjljfljdlfjzldjldjg'lzj'jjdljglzjglkjg'ldjg'ldjg''g</p>
</div>
.
Then the <p> elements are children (descendants) of the <div> etc. In fact I get everything about Inheritance I think apart from why on earth the :inherit is at all useful?
I mean if you apply a style to the <div> all its descendants will 'inherit' that style as long as there isn't a conflicting style rule etc.
So when would I ever need to use the :inherit property? because descendants already inherit - and if there is no style rule for an elements ancestor then what could the element :inherit as such?
I am sure there is something subtle I must be not understanding here?
Andy