About

CSS, short for Cascading Style Sheets, is a language used to control the presentation of HTML and XHTML documents. Each CSS document is made out of rulesets preceded by a selector - a set of rules for matching HTML and XHTML elements, containing property-value pairs that defines the presentation of the elements matching the selector. CSS is presented as a collection of features (CSS1, CSS2, CSS3).

Sample CSS File

a { /* This removes the underline from all anchors and change their colors to orange */
    text-decoration: none;
    color: orange;
}

#article a.tag { /* Selectors with greater Specificity override less specific ones */
    color: #4A6B82;
}

#article #sidebar > h3 + p:first-child a {
    /* Complex selectors can be created from joining multiple simple ones together */
    border-bottom: 1px solid #333;
    font-style: italics;
}

Useful links

Pure CSS Alternatives (CSS Automation)

Frameworks

history | show excerpt | excerpt history