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 }

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.


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:


    (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: