Will.Whim

A weblog by Will Fitzgerald

CSS tech note to self

<style type=”text/css”>
p { font-size: x-small; color: red }
p { font-size: x-large; color: blue }
</style>

There are two CSS rules above. Which one should apply? The official answer is the *latter* defined rule is the one used. Reference: Assigning property values, Cascading, and Inheritance in the CSS spec.

Advertisements

2 responses to “CSS tech note to self

  1. Daniel Lemire January 28, 2006 at 1:57 am

    Yep. If you read French, I have a guide to CSS with such explanations:

    http://www.daniel-lemire.com/xml/module3/chapitre12.xml

    (The page is in XML.)

  2. Will January 28, 2006 at 2:11 am

    Nice! (l’adjectif anglais, pas le port français.)

%d bloggers like this: