CSS Properties: An Introduction: Advertising Design & Graphic Arts
CSS Properties: An Introduction: Advertising Design & Graphic Arts
Web Design 1
CSS SYNTAX
The CSS syntax is made up of three parts: a selector, a property and a value:
selector {property:value;}
If the value is multiple words, put quotes around the value:
p {font-family:"sans serif";}
If you want to specify more than one property, you must separate each property with a semicolon. The example below shows how to define a center aligned paragraph, with a red text color:
p {text-align:center;
color:red;}
End each style rule with a semi-colon.
Description
Possible Values
font-style
font-weight
font-size
font-variant
normal | small-caps
text-decoration
text-transform
text-align
text-indent
length | percentage
text-transform
letter-spacing
word-spacing
line-height
font-family
Web Design 1
Description
Possible Values
margin-top
margin-right
margin-bottom
margin-left
padding-top
length | percentage
padding-right
length | percentage
padding-bottom
length | percentage
padding-left
length | percentage
border-color
color
border-style
border
margin
ment
CLASSIFICATION PROPERTIES
Property Name
Description
Possible Values
Whitespace
<url> | none
Display
Web Design 1
Description
Possible Values
top
left
visibility
z-index
number | auto
overflow
position
ment
absolute | relative
Description
Possible Values
background-color
color | transparent
background-image
url | none
background-repeat
background-attachment
scroll | fixed
background-position
color
color