Vous êtes sur la page 1sur 4

Cascading Style Sheets Properties Page 1 of 4

CSS Properties Table


A listing of most of the css properties

DHTML Pit Stop | CSS Index | CSS Properties | HTML List

Home/DHTML/CSS/Properties Table

Text Properties
Property What it Does Possible Values
Controls the amount of space between each letter in a normal (default)
letter-spacing
section of text. number of pixels
normal (default)
line-height Controls the amount of vertical space between lines of text number of pixels
percentage
browser decides
(default)
text-align Controls the alignment for a section of text left
right
center
none (default)
underline
text-
Controls what the text looks like overline
decoration
line-through
blink
0 (default)
text-indent Controls the indentation of the first line in a section of text number of pixels
percentage
none (default)
uppercase
text-transform Changes the case of a section of text
lowercase
capitalize
baseline (default)
sub
super
top
vertical-align Controls the vertical alignment of a section of text
text-top
middle
bottom
text-bottom
Controls the amount of space between words (doesn't work normal (default)
word-spacing
as of yet) number of pixels

Font Properties
Property What it Does Possible Values
browser decides (default)
font-family Controls the type of font shown on the page
font family name

http://www.pageresource.com/dhtml/cssprops.htm 5/9/2005
Cascading Style Sheets Properties Page 2 of 4

medium (default)
font-size Controls the size of the font number of pixels
percentage
normal (default)
font-style Controls the style of the font italic
oblique
medium (default)
font-size Controls the size of the font number of pixels
percentage
normal (default)
font-variant Controls the variant of the font
small-caps
normal (default)
lighter
bold
bolder
100
200
font-weight Controls the boldness of the font 300
400
500
600
700
800
900

Color/Background Properties
Property What it Does Possible Values
browser decides
color Controls the color of the text (default)
color name
background- scroll (default)
Controls the scrolling of the background
attachment fixed
transparent (default)
background-color Controls the color of the background
color name
none (default)
background-image Allows you to set a background image
image url
repeat (default)
Allows different patterns of background repeat-x
background-repeat
repetition repeat-y
no-repeat
0% 0% (default)
postion in pixels ie
{20,20}
percentage ie {5%,7%}
Controls the position of the background on the
background-position top
page
bottom
left
right
center

Box Properties
Property What it Does Possible Values

auto (default)

http://www.pageresource.com/dhtml/cssprops.htm 5/9/2005
Cascading Style Sheets Properties Page 3 of 4

number of pixels
width Controls the width of a section
percentage
auto (default)
height Controls the height of a section number of pixels
percentage
default text color
border-color Controls the border color of a section (default)
color name
none (default)
border-style Controls the style of a border solid
double
undefined (default)
number of pixels
border-width Controls the width of a border thin
medium
thick
medium (default)
number of pixels
border-top-width Controls the width of a border side
thin
thick
medium (default)
number of pixels
border-left-width Controls the width of a border side
thin
thick
medium (default)
number of pixels
border-right-width Controls the width of a border side
thin
thick
medium (default)
border-bottom- number of pixels
Controls the width of a border side
width thin
thick
0 (default)
margin-top Controls the width of a margin from the specified side number of pixels
percentage
0 (default)
margin-left Controls the width of a margin from the specified side number of pixels
percentage
0 (default)
margin-right Controls the width of a margin from the specified side number of pixels
percentage
0 (default)
margin-bottom Controls the width of a margin from the specified side number of pixels
percentage
0 (default)
padding-top Controls the amount of padding from the specified side number of pixels
percentage
0 (default)
padding-left Controls the amount of padding from the specified side number of pixels
percentage
0 (default)
padding-right Controls the amount of padding from the specified side number of pixels
percentage

http://www.pageresource.com/dhtml/cssprops.htm 5/9/2005
Cascading Style Sheets Properties Page 4 of 4

0 (default)
padding-bottom Controls the amount of padding from the specified side number of pixels
percentage
none (default)
float Controls the floating of a section left
right
none (default)
Defines whether a section disallows other sections on
clear left
its sides
right

Classification Properties
Property What it Does Possible Values
normal (default)
white-space Controls the white space formatting of a section pre
nowrap
block (default)
inline
display Controls the display of a section
list-item
none
inherit (default)
visiblity Controls the visibility of an element visible
hidden
auto (default)
z-index Controls the layering of an element
number

Partners

CoolHomepages | Web Design Library | Website Content

The tutorials and articles on these pages are 1997-2005 by John Pollock and may not be reposted without written
permission from the author, and may not be reprinted for profit.

Email: john@pageresource.com

Main Page | HTML | JavaScript | Graphics | DHTML/Style Sheets | ASP/PHP


PutWeb/FTP | CGI/Perl | Promotion | Java | Design Articles
Support Forums | Site Search | FAQs | Privacy | Contact

Copyright 1997-2005 The Web Design Resource. All rights reserved.

http://www.pageresource.com/dhtml/cssprops.htm 5/9/2005

Vous aimerez peut-être aussi