Changes

Jump to navigation Jump to search
1,043 bytes added ,  16:50, January 24, 2010
m
Reverted edits by TylerFx (Talk) to last version by EvanW
Line 1: Line 1: −
Page corrected by Anon.
+
'''Cascading Style Sheets''' ('''CSS''') are used with [[HTML]] to give a web page designers centralized control over the appearance of each page. CSS rules work best when stored in a stylesheet document, but style rules can also be ''embedded'' into a web page (in the header) or used ''inline'' (in a tag).
 +
 
 +
==Format==
 +
All definitions in CSS are written as
 +
<pre>
 +
selector {
 +
property: value;
 +
}</pre>
 +
For example, in order to change the background to red, and the text color to maroon, you would type,
 +
<pre>
 +
body {
 +
background:red;
 +
color:maroon
 +
}</pre> Body is the selector - meaning you want to edit a characteristic of the body in html, background and color are the properties - background refers to the background color and color refers to the text color, and then red and maroon are the given values for those properties.
 +
 
 +
==References==
 +
* [[User:Ed Poor|Ed Poor]]'s [http://style.tablemaker.net/properties.html excellent list of CSS formats].
 +
* [http://www.w3schools.com/css/css_reference.asp Index of all CSS properties, with examples]
 +
 
 +
[[category:internet]]

Navigation menu