- From: Ignacio Javier <ignacio.gomez@dicoruna.es>
- Date: Mon, 08 Mar 1999 11:57:42 +0100
- To: www-style@w3.org
> This is something I have dubbed "property co-dependency", and which > has already been mentioned a few times. > > It occurs in many other cases too, for example: > > DIV { background: green; color: yellow; } > P { background: white; color: black; } > EM { color: green; } > > Then the following EM: > > <div><em>Hello</em></div> > > ...would be green on green. > In this case <em> doesn´t inherits, but <div> "shines trough", isnt'it? As div are containers the problem is that somebody had make that devilish generic <div>ergence so...: one resource: <style> DIV { background: green; color: yellow; } </style> let's say my resource, my innocent document, cascading to the above: <style> .mine {color: black;} .mine em {color: green; } </style> <div class="mine"> color and font-face will be inherited, but...<br> etc.....<br>etc.....<br>etc.....<br>etc.....<br>etc.....<br>etc.....<br>etc.....<br> <em>Not</em> only this propierties inherit:<br> <ul> <li>one</li> <li>two</li> <li>....</li> <li>n</li> </ul> </div> And OK, I'll be more careful next time writing my pseudocuments.... Greetings, igjav
Received on Monday, 8 March 1999 06:01:20 UTC