Pages

Friday, October 29, 2010

Font & Text

PropertyValuesSample
font-familyfamily-name, generic-family{font-family:Verdana, MS Sans Serif}
font-sizepoint // pixel // percentage{font-size:12pt}
font-stylenormal / italic{font-style:italic}
font-variantnormal / smallcaps{font-variant:small-caps}
font-weightnormal / bold{font-weight:bold}
letter-spacingnormal / pixel{letter-spacing:2px}
word-spacingnormal / pixel{word-spacing:5px}
text-decorationnone / underline / overline / line-through{text-decoration:line-through}
vertical-alignbaseline / sub / super / top / text-top / middle / bottom / text-bottom // percent{vertical-align:sub}
text-transformcapitalize / uppercase / lowercase / none{text-transform:uppercase}
text-alignleft / right / center / justify{text-align:justify}
text-indentpixel // percent{text-indent:20px}
line-heightnormal / pixel // percent{line-height:5px}

Color & Background

PropertyValuesSample
colorcolor // hexidecimal value{color:orange}
background-colorcolor // hexidecimal value / transparent{background-color:green}
background-imageurl / none{background-image:url(image.jpg)}
background-repeatrepeat / repeat-x / repeat-y / no-repeat{background-repeat:no-repeat}
background-attachmentscroll / fixed{background-attachment:fixed}
background-positiontop / center / bottom / left / center / right // pixel{background-position:top center}

Box (table, paragraph, form, etc)

PropertyValuesSample
margin-topauto / pixel // percentage{margin-top:5px}
margin-rightauto / pixel // percentage{margin-right:0px}
margin-bottomauto / pixel // percentage{margin-bottom:5%}
margin-leftauto / pixel // percentage{margin-left:auto}
marginauto / pixel // percentage{margin:10px}
padding-topauto / pixel // percentage{padding-top:5px}
padding-rightauto / pixel // percentage{padding-right:0px}
padding-bottomauto / pixel // percentage{padding-bottom:5%}
padding-leftauto / pixel // percentage{padding-left:auto}
paddingauto / pixel // percentage{padding:10px}
border-widththin / medium / thick // pixel{border-width:10px 5px 10px 5px}
border-colorcolor // hexidecimal value{border-color:#130919}
border-stylenone / solid / double / groove / ridge / inset / outset{border-style:ridge}
borderborder-width / border-color / border-style{border:thin solid #FFFFFF}
floatnone / left / right{float:none}
clearnone / left / right / both{clear:left}

Lists

PropertyValuesSample
list-style-typedisk / circle / square / decimal / lower-roman / upper-roman / lower-alpha / upper-alpha / none{list-style-type:square}
list-style-imageurl / none{list-style-image:url(img.gif)}
list-style-positioninside / outside{list-style-position:outside}
list-styletype // position // image{list-style: disk inside url(img.gif)}
displayblock / inline / list-item / none{display: inline}
white-spacenormal / pre / nowrap{white-space: nowrap}

Position

PropertyValuesSample
heightpixel // auto{height:20px}
widthpixel // auto{width:20px}
leftpixel // percentage // auto{left:130px}
toppixel // percentage // auto{top:10%}
positionabsolute / relative / static{position:absolute}
overflowvisible / hidden / scroll / auto{position:scroll}
visibilityvisible / hidden / inherit{visibility:hidden}
z-indexinteger{z-index:1}

Miscellaneous

PropertyValuesSample
a:link, a:active, a:hover, a:visitedvarious{color:red; font-weight:bold; text-decoration:none; border:thin solid black}
cursorauto / crosshair / default / hand / move / e-resize / ne-resize / nw-resize / n-resize / se-resize / sw-resize / s-resize / w-resize / text / wait / help{cursor:n-resize}

0 Comments:

Post a Comment