|
There is a
phenominal amount of properties and values you
can use - I'll just go over some of the more
useful ones. For many more properties, go to one
of the web sites at the bottom of this page, or buy a book from your local
bookstore. Text in italics shows
the values you can use, and text in bold shows
the property.
Background-Repeat
is a property which tells the browser how many
times to repeat the background image. Possible
values are repeat, in which it repeats
normally, repeat-x, which only repeats
horizontally, repeat-y, which only
repeats vertically, and no-repeat, which
doesn't repeat at all.
Color
defines the colour of any element on your page by
using a colour name or the #RRGGBB notation.
List-Style-Type
identifies which marker is used to show a list
item. You can use disc, circle, square,
decimal, lower-roman, upper-roman, lower-alpha,
upper-alpha and none.
List-Style-Image
idenifies an image to be used as a list marker.
You use it in the format: list-style-type:url(yourimage.gif)
Font-Family
sets the font for text. Use a font name or a
type: serif, sans-serif, cursive, fantasy
and monospace. Names of fonts with
spaces should be inclosed in quotes, and you can
put more than one font by separating with a comma
- they will be used in the order that you state
them.
Font-Size
specifies the size of text. Use xx-small,
x-small, small, smaller, medium, large, larger,
x-large or xx-large.
Font-Style
defines if the font should be normal, italic
or oblique.
Font-Value
can change the font to normal or small-caps.
Font-Weight
defines the boldness of a font. Use normal,
bold, bolder, lighter, and the numbers 100
to 900. 100 is the lightest, 500 is
medium and 900 is darkest.
Text-Align
changes the alignment of text. You can
use left, right, center or justify
as properties.
Text-Decoration
assigns a text modification - none,
underline, overline, line-through and blink.
Used with the tag <A>, this can remove
underlining from links.
Text-Transform
can change the case of text with capitalise,
lowercase, uppercase or none.
|