User:Feixie/CSS

Tips
1. Browser default 2. External style sheet 3. Internal style sheet (in the head section) 4. Inline style (inside an HTML element)
 * Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number four has the highest priority:
 * If we have multiply style declaration for the same target in external style sheets, the last loaded one wins.

selector {property: value; property: value;...} E { … } apply to all E elements .c { … } apply to all elements with "class='c'" E1 E2 { … } apply to all E2 elements nested within E1 elements E.c { … } apply to all E elements with "class='c'" E:pc { … } apply to all E elements with pseudoclass "pc"
 * Structure of a style
 * 1) i { … } apply to all elements with "id='i'"