Sie sind auf Seite 1von 16

Appendix

CSS Properties and Values


This table provides a reference to some of the most commonly used CSS properties in CSS 2.1. In addition to the
name of the property, the allowed values have been listed.
For a complete list of CSS properties visit http://www.w3.org/TR/CSS21/propidx.html. For a more indepth discussion on how to add custom values, please review Lesson 4: Fundamentals of HTML, XHTML, and
CSS.

Name

Possible Values

backgroundscroll | fixed | inherit


attachment

Default
value
scroll

background<color> | transparent | inherit


color

transparent

background<uri> | none | inherit


image

none

[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> |


backgroundtop | center | bottom ] ] | [ [ left | center 0% 0%
position
| right ] || [ top | center | bottom ] ] | inherit
background- repeat | repeat-x | repeat-y | no-repeat |
repeat
repeat
inherit

background

[background-color || background-imsee individuage || background-repeat ||


background-attachment || background- al properties
position] | inherit

border-collapse

collapse | separate | inherit

separate

border-color [ <color> | transparent ]{1,4} | inherit

see individual properties

border-spacing

<length> <length>? | inherit

border-style <border-style>{1,4} | inherit

see individual properties

border-top
border-right
[ <border-width> || <border-style> ||
border-botborder-top-color ] | inherit
tom borderleft

see individual properties

border-topcolor borderright-color <color> | transparent | inherit


borderbottom-color

the value of
the color
property

border-leftcolor
border-topstyle borderright-style
border<border-style> | inherit
bottom-style
border-leftstyle

none

border-topwidth borderright-width
border<border-width> | inherit
bottom-width
border-leftwidth

medium

border-width <border-width>{1,4} | inherit

see individual properties

see individual properties

border

[ <border-width> || <border-style> ||
border-top-color ] | inherit

bottom

<length> | <percentage> | auto | inherit auto

clear

none | left | right | both | inherit

none

clip

<shape> | auto | inherit

auto

color

<color> | inherit

depends on
user agent

display

inline | block | list-item | run-in |


inline-block | table | inline-table |
table-row-group | table-header-group |
inline
table-footer-group | table-row | tablecolumn-group | table-column | tablecell | table-caption | none | inherit

float

left | right | none | inherit

none

font-family

[[ <family-name> | <generic-family> ] depends on


[, <family-name>| <generic-family>]*
user agent
] | inherit

font-size

<absolute-size> | <relative-size> |
<length> | <percentage> | inherit

medium

font-style

normal | italic | oblique | inherit

normal

font-variant

normal | small-caps | inherit

normal

font-weight

normal | bold | bolder | lighter | 100 |


200 | 300 | 400 | 500 | 600 | 700 | 800 | normal
900 | inherit

font

[ [ font-style || font-variant || fontweight ]? font-size [ / line-height ]?


font-family ] | caption | icon | menu |
message-box | small-caption | statusbar | inherit

height

<length> | <percentage> | auto | inherit auto

see individual properties

left

<length> | <percentage> | auto | inherit auto

letter-spacing normal | <length> | inherit


line-height

normal

normal | <number> | <length> | <pernormal


centage> | inherit

list-style-im<uri> | none | inherit


age

none

list-style-posinside | outside | inherit


ition

outside

disc | circle | square | decimal |


decimal-leading-zero | lower-roman |
upper-roman | lower-greek | lower-latlist-style-type
disc
in | upper-latin | armenian | georgian |
lower-alpha | upper-alpha | none | inherit
list-style

[ list-style-type || list-style-position ||
list-style-image ] | inherit

see individual properties

margin-right
<margin-width> | inherit
margin-left

margin-top
margin-bot- <margin-width> | inherit
tom

margin

<margin-width>{1,4} | inherit

see individual properties

max-height

<length> | <percentage> | none | inhernone


it

max-width

<length> | <percentage> | none | inhernone


it

min-height

<length> | <percentage> | inherit

min-width

<length> | <percentage> | inherit

overflow

visible | hidden | scroll | auto | inherit

visible

padding-top
padding-right
padding-bot- <padding-width> | inherit
tom paddingleft

padding

<padding-width>{1,4} | inherit

see individual properties

position

static | relative | absolute | fixed | inherit

static

quotes

[<string> <string>]+ | none | inherit

depends on
user agent

right

<length> | <percentage> | auto | inherit auto

table-layout auto | fixed | inherit

auto

text-align

a nameless
value that

left | right | center | justify | inherit

acts as left if
direction is
ltr, right if
direction is
rtl
text-decora- none | [ underline || overline || linetion
through || blink ] | inherit

none

text-indent

<length> | <percentage> | inherit

text-transform

capitalize | uppercase | lowercase |


none | inherit

none

top

<length> | <percentage> | auto | inherit auto

baseline | sub | super | top | text-top |


vertical-align middle | bottom | text-bottom | <percentage> | <length> | inherit

baseline

visibility

visible

visible | hidden | collapse | inherit

white-space

normal | pre | nowrap | pre-wrap | prenormal


line | inherit

width

<length> | <percentage> | auto | inherit auto

word-spacing normal | <length> | inherit

normal

z-index

auto

auto | <integer> | inherit

Credits
Writing
Jeremy Osborn, Jennifer Smith

President, American Graphics Institute


and Digital Classroom Series Publisher
Christopher Smith

Executive Editor
Jody Lefevere

Acquisitions Editor
Aaron Black

Technical Editors
Haziel Olivera

Editors
Marylouise Wiack, Karla Melendez

Editorial Director

Robyn Siesky

Business Manager
Amy Knies

Senior Marketing Manager


Sandy Smith

Vice President and Executive Group Publisher


Richard Swadley

Vice President and Executive Publisher


Barry Pruett

Senior Project Coordinator


Lynsey Stanford

Project Manager
Cheri White

Graphics and Production Specialist

Jason Miranda, Spoke & Wheel

Media Development Project Supervisor


Chris Leavey

Proofreading
Jay Donahue, Barnowl Publishing

Indexing
Michael Ferreira

Stock Photography
iStockPhoto.com

Thank you for evaluating ePub to PDF Converter.


That is a trial version. Get full version in http://www.epubto-pdf.com

Das könnte Ihnen auch gefallen