Style Sheets - Part 4
The general format of specifying simple style information is as follows:
<STYLE type="text/css">
TAG {attribute:value; attribute:value; ... attribute:value}
TAG {attribute:value; attribute:value; ... attribute:value}
</STYLE>
For example,
<STYLE type="text/css">
H3 {color:blue; text-align:left}
H4 {color:white; background:red; font-style:italic}
</STYLE>
I'm an H1 element
I'm an H2 element
I'm an H3 element
I'm an H4 element
I'm an H5 element
I'm an H6 element
There are few dozen attributes that can be specified in a style. Unfortunately, not all of these
are supported on all browsers so it would be good to consult a good book on dynamic HTML or HTML 4.0.
Color Properties
background
background-color
background-image
background-position
background-repeat
color
Box Properties
border
border-top
border-right
border-bottom
border-left
border-color
border-top-color
border-right-color
border-bottom-color
border-left-color
border-style
border-top-style
border-right-style
border-bottom-style
border-left-style
border-width
border-top-width
border-right-width
border-bottom-width
border-left-width
clear
float
margin
margin-top
margin-right
margin-bottom
margin-left
padding
padding-top
padding-right
padding-bottom
padding-left
Font Properties
font
font-family
font-size
font-style
font-variant
font-weight
Text Properties
letter-spacing
text-align
text-decoration
line-height
text-indent
text-transform
vertical-align
Classification Properties
display
list-style-type
list-style-image
list-style-position
list-style
white-space