Sie sind auf Seite 1von 1

Cascading Style Sheet Quick Reference Guide

FONTS AND TEXT Properties font-family font-style font-size Values Arial, Verdana, Helvetica, Tahoma... normal, italic, bold, oblique, inherit See Size Below, and... xx-small, x-small, small, medium, large, x-large, xx-large,larger, smaller, inherit #% # = a percentage relative to current font. normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, inherit left, right, center, justify, inherit top, middle, baseline, bottom (generally for <TD> tag) normal, pre, nowrap, inherit none, underline, overline, line-through, inherit capitalize, uppercase, lowercase, none, inherit normal, (See Size Below), inherit (See Size Below), inherit normal, (See Size Below), inherit SIMPLE HTML FILE EXAMPLE <HTML> <HEAD> <LINK REL='STYLESHEET' TYPE='text/css' HREF='MyStyleSheet.css' > </HEAD> <BODY> BODY TEXT HERE </BODY> <HTML> HTML TABLE EXAMPLE <TABLE> <CAPTION>The Caption</CAPTION> <THEAD> <TR> <TH>Header 1</TH> <TH>Header 2</TH> </TR> </THEAD> <TBODY> <TR> <TD>Data Column 1</TD> <TD>Data Column 2</TD> </TR> </TBODY> <TFOOT> <TR> <TH>Footer 1</TH> <TH>Footer 2</TH> </TR> </TFOOT> </TABLE> Values See Color Above url(URL) Values See Sizes

font-weight text-align vertical-align

white-space text-decoration text-transform letter-spacing text-indent word-spacing COLORS Properties Values rgb(red, green, blue) red=0-255, green=0-255, blue=0-255 #RRGGBB RR=Red Hex, GG=Green Hex, BB=Blue Hex colors go from 00 to FF. color-name black, white, red, green, blue, gray, etc. BORDERS Properties border-style border-top-style border-right-style border-bottom-style border-left-style border-collapse border-width border-top-width border-right-width border-bottom-width border-left-width IE SCROLL BARS Properties scrollbar-base-color scrollbar-face-color scrollbar-arrow-color scrollbar-track-color scrollbar-shadow-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-highlight-color scrollbar-3dlight-color scrollbar-darkshadow-color SIZE Properties #px #pt #pc #em #ex #in #mm #cm (# = number) Values none, hidden dotted dashed solid, double groove, ridge inset, outset normal, collapse inherit See Sizes

BACKGROUND Properties background-color background-image

Values See Colors See Colors

MARGINS Properties margin margin-top margin-right margin-bottom URL=path to gif, jpg, bmp, or png margin-left background-attachment scroll, fixed PADDING background-repeat repeat, no-repeat Properties repeat-x, repeat-y padding background-position See Sizes + padding-top padding-right #% #% padding-bottom top, center, bottom AND/OR left, right padding-left CURSORS POSITIONING Properties Properties Values cursor position relative, absolute overflow hidden, scroll, visible, auto top #px #ex left #pt #in right #pc #mm bottom #em #cm (# = a number) Get the Spectrum BarCode Generator For your own projects.

Values See Sizes

Values pixels points picas font-size x-height inches millimeters centimeters

Values auto crosshair default hand pointer move, text wait, help n-resize ne-resize e-resize se-resize s-resize sw-resize w-resize nw-resize url(imagepath)

Copyright 2005 Spectrum Research, Inc. All Rights Reserved http://www.spectrum-research.com

Das könnte Ihnen auch gefallen