1
Weights in StyleSheet on Thu Oct 14, 2010 6:47 pm
Unknown Data
Registered Member

Weights in StyleSheet Learn CSS - part 4 |
The "weight" of a stylesheet! Normally can we find the "weight" of a stylesheet that depends on the power of it. If we fx have used a Inline style, will the power of that stylesheet overwrite a Internal stylesheet, because of the inlines "weight". A Internal stylesheet will also got a bigger "weight" than a External stylesheet. Here are a list of what that "beats" what. 1. Inline style 2. Internal stylesheet 3. External stylesheet 4. Browserens default stylesheet 5. Multible stylesheets If we build our page about the above, can we have multiable stylesheets. As an example could we have a External stylesheets as the global one, and then a Internal or Inline style as a special one on some HTML pages. Here could we illustrate an example, were we start with a External stylesheet (saved as "externalstylesheet.css") that looks like this:
The document itself Our first HTML document looks like this and refer only to our External stylesheet.
Our HTML document number 2 refer also to our External stylesheet, dog will the background color be #FFFF00 (yellow) and in this coincidence will the line turn red. We keep on going with our examples, by checking the source under here.
Notice that the title of the documents with blue dosen't change. That's because it's the External stylesheet that deiceds. That was a lot of things you learned here, and in the further lessons will your surely got some more info about the simple thing in CSS. |
| Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |


Home

