CSS
From DocForge
CSS, Cascading Style Sheets, is a way of expressing formatting and display properties of a document. CSS is most typically used by web browsers to format HTML for display to the user.
In CSS each HTML element, identified by the element type, name, or id, can be given formatting instructions.
Declaration [edit]
To declare that a CSS file should be used to format an HTML document, a link element is added to the head of the document:
<head> <title>Home Page</title> <link href="/default.css" rel="stylesheet" type="text/css" /> </head>
Syntax [edit]
The basic syntax of a CSS document:
[selector] {
[property]: [value];
[property]: [value];
...
}
[selector] {
[property]: [value];
}
...
/* Multi-line
comments */
For example, this sets all paragraphs (enclosed in p tags) to have a 5 pixel margin, all elements with class "date" to have a top padding of 5%, and the element with id "title" to have bold text:
p { margin: 5px; } .date { padding-top: 5%; } #title { font-style: bold; }

