Cascade Style Sheets

From Got Opinion Wiki
Revision as of 10:38, 15 March 2008 by Paul (talk | contribs) (New page: A Cascade Style Sheet (CSS) is made up of two parts: the selector and declaration. The declaration is made up of two elements: a property and value. A declaration must end with a semicolo...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A Cascade Style Sheet (CSS) is made up of two parts: the selector and declaration.

The declaration is made up of two elements: a property and value. A declaration must end with a semicolon.

Multiple declarations can be contained in a single rule.

Multiple selectors can be contained in a single rule. A comma must be used after each selector except the last.

h1, h2, h3 {color:red; font-weight:bold;}

Multiple rules can be applied to the same selector.

h1, h2, h3 {color:red; font-weight:bold;}

h3 {font-style:italic;}