demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Introduction to CSS

css / introduction

Estimated reading time: 1 minute, 15 seconds

So far we have covered the XHTML required to markup a page. XHTML wraps around the content of the page, telling the content what it is (a paragraph, heading, etc). For appearance, we turn to CSS.

Web Technologies
XHTMLCSS
contentappearance
“what something is”“how something looks”
semantic markup of datarules for appearance of content

The CSS acronym is best explained in the following order:

Styles

Rules governing the appearance of web page content.

Sheets

The rules are predominantly in a document, or several documents, that as separate from the HTML: a separate “sheet” (although they do not have to be).

Cascading

These rules can have various priorities, meaning that the appearance of the page can adjust to various circumstances (for example, different rules might cover the appearance of a web page when it is printed versus when it is displayed on the screen). The rules can also be overlapping, syncretic or conflicting: if more than one rule commands the appearance of an element, CSS sorts out which style rule takes priority.

CSS gives several advantages over alternative methods of determining the appearance of web pages:

  1. It separates appearance from content, meaning that one can be changed without having to adjust or untangle the other.

  2. The ability to very quickly change the overall look of a site, or to optimize the appearance of the site for , or ).

  3. They assure consistency of appearance across pages of a web site.

  4. They add powerful techniques in dealing with advanced features of , such as <div>.

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.