Content deleted Content added
MartinHarper (talk | contribs) ok, so I made a demo... |
No edit summary |
||
Line 187:
: I made a demo at [[Inheritance (computer science)]] to get an idea of what such a page might look like - Taku, SCCarlson, please feel free to revert it or edit heavily if you disagree. [[User:MyRedDice|Martin]] 20:41 1 Jul 2003 (UTC)
-------
There isn't really inheritance in CSS. The ''document'' the CSS is attached to has a hierarchy of elements. Elements apply styles based on the Cascade. It's rather complicated. Say we have in HTML a P inside a DIV, then a regular P. In CSS we have rules for P and rules for DIV. The first P might inherit DIV rules -- if they apply. The second will not. It gets wven more complex when you throw the class="foo" attribute in -- [[User:Tarquin|Tarquin]] 21:39 1 Jul 2003 (UTC)
|