MrDoubtFire
01-31-2003, 02:05 AM
Hi,
Is there any particular way the html (or xhtml in this case) document's HEAD is parsed? For example, if I have a declaration of something in an external css file called "doc1.css" and then later on I alter something with the same declaration but it's in "doc2.css", which one takes precedence? I ask because I read somewhere that it's parsed from the bottom upwards.
For that matter, if I write something later on in the HEAD in an inline style:
<style type="text/css">
<!--
.foo { text-align:left; }
-->
</style>
: does the above trump all if the other (same) declarations in the external stylesheets are the same (but obviously with text-align set to something else)?
Hope someone can clarify here, thanks!
MrDoubtFire
Is there any particular way the html (or xhtml in this case) document's HEAD is parsed? For example, if I have a declaration of something in an external css file called "doc1.css" and then later on I alter something with the same declaration but it's in "doc2.css", which one takes precedence? I ask because I read somewhere that it's parsed from the bottom upwards.
For that matter, if I write something later on in the HEAD in an inline style:
<style type="text/css">
<!--
.foo { text-align:left; }
-->
</style>
: does the above trump all if the other (same) declarations in the external stylesheets are the same (but obviously with text-align set to something else)?
Hope someone can clarify here, thanks!
MrDoubtFire