4214.5 Cascading Style Sheets (CSS)

Resources: http://www.w3schools.com/cssref/

The Cascade

Inline – highest priority

Internal – higher priority than external

External – lowest priority – used for entire site changes

Class vs ID

Class – can be used multiple times on a page (uses . notation to select) EXAMPLE — <div class=”bold”>

ID – can only be used ONCE per page (uses # notation to select) EXAMPLE — <div id=”header”>

Inheritance and Descendants

CSS Box Model vs CSS3 Box Sizing Model



display: block


Formatting Text

Fonts (font family, font weight, font size)



Written by