HTMLStarter.com
HTML, CSS, JavaScript for beginners - Interactive Training

Summary of Style Properties and Values

The following table lists style properties of CSS1 - (still being modified)

Legend
Enntries in bold+Italics are values that can be entered directly
Enntries in bold+Italics+underlined are default values of the property
_px = size in pixels (e.g., 20px )
_% = size in percent (e.g., 80% )

Fonts and Text
Style PropertyStyle Value
font-familyfamily-name | generic-family
font-sizeabsolute-size | relative-size | length | percentage
font-stylenormal | italic | oblique
font-variantnormal | small-caps
font-weightnormal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
fontfont-style |font-variant | font-weight font-size/line-height | font-family
line-heightnormal | _px | length | _%
letter-spacing normal | length
word-spacingnormal | length
text-alignleft | right | center | justify
vertical-alignbaseline | sub | super | top | text-top | middle | bottom | text-bottom | percentage
text-decorationnone | underline | overline | line-through | blink
text-transform none | capitalize | uppercase | lowercase
text-indentlength | percentage
Color and Background
Style PropertyStyle Value
colorcolor
background-colortransparent | color
background-imagenone | url
background-repeat repeat | repeat-x | repeat-y | no-repeat
background-attachmentscroll | fixed
background-positionpercentage | length>{1,2} | top | center | bottom || left | center | right
backgroundbackground-color | background-image | background-repeat | background-attachment | background-position
Margin, Padding, Border
Style PropertyStyle Value
margin-toplength | percentage | auto
margin-rightlength | percentage | auto
margin-bottomlength | percentage | auto
marginlength | percentage | auto {1,4}
padding-top length | percentage
padding-rightlength | percentage
padding-bottom length | percentage
padding-leftlength | percentage
paddinglength | percentage {1,4}
border-top-widthmedium | thin | thick | length
border-right-width medium | thin | thick | length
border-bottom-width medium | thin | thick | length
border-left-widthmedium | thin | thick | length
border-widththin | medium | thick | length]{1,4}
border-colorcolor{1,4}
border-stylenone | dotted | dashed | solid | double | groove | ridge | inset | outset
border-topborder-top-width || border-style || color
border-rightborder-right-width || border-style || color
border-bottom border-bottom-width || border-style || color
border-leftborder-left-width || border-style || color
borderborder-width || border-style || color
Positioning and Displaying
Style PropertyStyle Value
positionstatic | absolute | relative
leftauto | length | percentage
topauto | length | percentage
widthauto | length | percentage
heightauto | length | percentage
overflowvisible | hidden | scroll | auto
clipauto | shape
visibilityinherit | visible | hidden
displayblock | inline | list-item | none
floatnone | left | right
clear none | left | right | both
white-spacenormal | pre | nowrap
z-index auto | integer
List Formatting
Style PropertyStyle Value
list-style-typedisc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none
list-style-image none | url
list-style-positionoutside | inside
list-stylekeyword || position || url
 

Send This SITE To A Friend   |  Add to favorites   |  Terms of service   |  Privacy statement   |  Contact us
Copyright © 2009-2012 HTMLStarter.com