View Full Version : inherited css ?
hairynugs6382
09-10-2002, 12:07 AM
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?
[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".
COBOLdinosaur
09-10-2002, 10:46 PM
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.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.