CSS Elements
CSS Coding Tutorials | Submited Nov 17, 2007
Written by: John
This will display the different properties and values you can put between the brackets "{}" of your stylesheet.
Property Name
Values | seperared by the "|"
font-style
normal | italic | oblique
font-variant
small-caps | normal
font-weight
normal | lighter | bold | bolder
font-size
smaller | larger | xx-small | x-small | small | medium | large | x-large | xx-large | *number*pt | *number*em | *number*px
color
HEX code | color name
word-spacing
normal | *number*px
line-height
normal | *number*px | *percentage*
letter-spacing
normal | *number*px
text-decoration
none | underline | overline | line-through | blink *not supported by IE*
text-transform
none | capitalize | uppercase | lowercase
text-align
left | center | right | justify
text-indent
*number*pt | *number*em | *number*px
direction
ltr | rtl
white-space
pre | nowrap
position
absolute | relative | static | fixed
top
*number*pt | *number*em | *number*px | *percentage*
left
*number*pt | *number*em | *number*px | *percentage*
bottom
*number*pt | *number*em | *number*px | *percentage*
right
*number*pt | *number*em | *number*px | *percentage*
overflow
visible | auto | none | scroll | hidden
width
auto | *number*em | *number*px | *percentage*
height
auto | *number*em | *number*px
visibility
visible | inherit | hide | hidden | show
cursor
auto | crosshair | hand | pointer | move | n-resize | ne-resize | e-resize | se-resize | s-resize | sw-resize | w-resize | nw-resize | text | wait | help
padding | border-width | margin
*in order you can can change the padding, border and margin on all every side by the following pattern in px's, em's and percentages* | top right bottom left
border-color
HEX color code | color name | transparent | inherit
border-style
solid | dashed | dotted | double | groove | ridge | inset | outset | none
border-width
*number*px | *number*em | *percentage*
background-image
none | url("
url_to_image")
background-repeat
no-repeat | repeat | repeat-x | repeat-y
background-attachment
fixed | scroll
background-position
top | center | right | bottom | left | *percentage*
background-color
HEX color code | color name | transparent
display
block | inline | list-item | table | table-cell | table-row | none
clear
left | right | none | both
float
left | right | none