Technologies XML / CSS / Recettes CSS / CSS 2.1 : propriétés et extensions propriétaires / CSS 2.1 : propriétés

(Extrait de « CSS Kochbuch » de Christopher Schmitt)

 

Nom

Valeurs

Valeur initiale

S’applique à
(par défaut : tous)

Héritée ?

Pourcentages autorisés ?
(par défaut : non)

Type de média

background-attachment

scroll | fixed | inherit

scroll

non

visual

background-color

<Farbwert> | transparent | inherit

transparent

non

visual

background-image

<URI> | none | inherit

none

non

visual

background-position

[ [<Prozentwert> | <Längenangabe> | left | center | right ] [<Prozentwert> | <Längenangabe> | top | center | bottom]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit

0% 0%

non

se rapportent au point correspondant de l’élément et de l’image d’origine

visual

background-repeat

repeat | repeat-x | repeat-y | no-repeat | inherit

repeat

non

visual

background

[ <backgroundcolor> || <backgroundimage> || <background- repeat> || <backgroundattachment> || <backgroundposition>] | inherit

voir les propriétés individuelles

non

autorisés pour background-position

visual

border-collapse

collapse | separate | inherit

separate

éléments dont la propriété display vaut table ou inlinetable

oui

visual

border-color

[ <Farbwert> | transparent ]{1,4} | inherit

voir les propriétés individuelles

non

visual

border-spacing

<Längenangabe> <Längenangabe>? | inherit

0

éléments dont la propriété display vaut table ou inlinetable

oui

visual

border-style

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

voir les propriétés individuelles

non

visual

border-top border-right borderbottom border-left

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

voir les propriétés individuelles

non

visual

border-top-color border-right-color border-bottom-color border-left-color

<Farbwert> | transparent | inherit

La valeur de la propriété color

non

visual

border-top-style border-right-style border-bottom-style border-left-style

<border-style> | inherit

none

non

visual

border-top-width border-right-width border-bottom-width border-left-width

<border-width> | inherit

medium

non

visual

border-width

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

voir les propriétés individuelles

non

visual

border

[ <border-width> ||<border-style> || <border-topcolor>] | inherit

voir les propriétés individuelles

non

visual

bottom

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments positionnés

non

se rapportent à la hauteur du bloc conteneur

visual

caption-side

top | bottom | inherit

top

éléments dont la propriété display vaut table-caption

oui

visual

clear

none | left | right | both | inherit

none

éléments de bloc

non

visual

clip

<Form> | auto | inherit

auto

éléments positionnés de manière absolue

non

visual

color

<Farbwert> | inherit

dépend de l’agent utilisateur

oui

visual

content

normal | none | [<Zeichenkette> | <URI> | <Zähler> | attr(<Identifier>) | open-quote | closequote | no-openquote | no-closequote]+ | inherit

normal

les pseudo-éléments :before et :after

non

all

counter-increment

[<Identifier> <Integerwert>?]+ | none | inherit

none

non

all

counter-reset

[<Identifier> <Integerwert>? ]+ | none | inherit

none

non

all

cursor

[ [ <URI> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress ] ] | inherit

auto

oui

visual, interactive

direction

inline | block | listitem | run-in | inline-block | table | inline-table | tablerow-group | tableheader- group | table-footer-group | table-row | tablecolumn-group | table-column | table-cell | tablecaption | none | inherit

inline

non

all

empty-cells

show | hide | inherit

show

éléments dont la propriété display vaut table-cell

oui

visual

float

left | right | none | inherit

none

tous ; pour plus de détails, voir la recette Afficher des colonnes flottantes dans n’importe quel ordre

non

visual

font-family

[[ <Schriftfamilie> | <allgemeine Schriftfamilie> ] [,<Schriftfamilie>| <allgemeine Schriftfamilie> ]* ] | inherit

dépend de l’agent utilisateur

oui

visual

font-size

<absolute Größe> | <relative Größe> | <Längenangabe> | <Prozentwert> | inherit

medium

oui

se rapportent à la valeur calculée de font-size pour l’élément parent

visual

font-style

normal | italic | oblique | inherit

normal

oui

visual

font-variant

normal | small-caps | inherit

normal

oui

visual

font-weight

normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit

normal

oui

visual

font

[ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> ] | caption | icon | menu | messagebox | small-caption | status-bar | inherit

voir les propriétés individuelles

oui

voir les propriétés individuelles

visual

height

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments de bloc et éléments remplacés

non

calculés par rapport à la hauteur du bloc conteneur

visual

left

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments positionnés

non

se rapportent à la largeur du bloc conteneur

visual

letter-spacing

normal | <Längenangabe> | inherit

normal

oui

visual

line-height

normal | <number> | <Längenangabe> | <Prozentwert> | inherit

normal

oui

relatifs à la taille de police (font-size) de l’élément

visual

list-style-image

<URI> | none | inherit

none

éléments dont la propriété display vaut list-item

oui

visual

list-style-position

inside | outside | inherit

outside

éléments dont la propriété display vaut list-item

oui

visual

list-style-type

disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit

disc

éléments dont la propriété display vaut list-item

oui

visual

list-style

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

voir les propriétés individuelles

éléments dont la propriété display vaut list-item

oui

visual

margin-right
margin-left

<Breite> | <Prozentwert> | auto | inherit

0

tous les éléments sauf les éléments de tableau dont la propriété display a une valeur autre que table ou inline-table.

non

se rapportent à la largeur du bloc conteneur

visual

margin-top
margin-bottom

<Breite> | <Prozentwert> | auto | inherit

0

tous les éléments sauf les éléments de tableau dont la propriété display a une valeur autre que table ou inline-table.

non

se rapportent à la largeur du bloc conteneur

visual

margin

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

voir les propriétés individuelles

tous les éléments sauf les éléments de tableau dont la propriété display a une valeur autre que table ou inline-table.

non

se rapportent à la largeur du bloc conteneur

visual

max-height

<Längenangabe> | <Prozentwert> | none | inherit

none

tous les éléments sauf les éléments en ligne non remplacés et les éléments de tableau

non

se rapportent à la hauteur du bloc conteneur

visual

max-width

<Längenangabe> | <Prozentwert> | none | inherit

none

tous les éléments sauf les éléments en ligne non remplacés et les éléments de tableau

non

se rapportent à la largeur du bloc conteneur

visual

min-height

<Längenangabe> | <Prozentwert> | inherit

0

tous les éléments sauf les éléments en ligne non remplacés et les éléments de tableau

non

se rapportent à la hauteur du bloc conteneur

visual

min-width

<Längenangabe> | <Prozentwert> | inherit

0

tous les éléments sauf les éléments en ligne non remplacés et les éléments de tableau

non

se rapportent à la largeur du bloc conteneur

visual

orphans

<Integerwert> | inherit

2

éléments de bloc

oui

visual, paged

outline-color

<Farbwert> | invert | inherit

invert

non

visual, interactive

outline-style

<border-style> | inherit

none

non

visual, interactive

outline-width

<border-width> | inherit

medium

non

visual, interactive

outline

[ <outline-color> || <outline-style> || <outline-width> ] | inherit

voir les propriétés individuelles

non

visual, interactive

overflow

visible | hidden | scroll | auto | inherit

visible

éléments de bloc et éléments remplacés

non

visual

padding-top padding-right padding-bottom padding-left

<padding-width> | inherit

0

tous les éléments sauf les éléments de tableau dont la propriété display a une valeur autre que table, inline-table ou table-cell.

non

se rapportent à la largeur du bloc conteneur

visual

padding

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

voir les propriétés individuelles

tous les éléments sauf les éléments de tableau dont la propriété display a une valeur autre que table, inline-table ou table-cell.

non

se rapportent à la largeur du bloc conteneur

visual

page-break-after

auto | always | avoid | left | right | inherit

auto

éléments de bloc

non

visual, paged

page-break-before

auto | always | avoid | left | right | inherit

auto

éléments de bloc

non

visual, paged

page-break-inside

avoid | auto | inherit

auto

éléments de bloc

oui

visual, paged

position

static | relative | absolute | fixed | inherit

static

non

visual

quotes

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

dépend de l’agent utilisateur

oui

visual

right

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments positionnés

non

se rapportent à la largeur du bloc conteneur

visual

table-layout

auto | fixed | inherit

auto

éléments dont la propriété display vaut table ou inline-table

non

visual

text-align

left | right | center | justify | inherit

dépend de l’agent utilisateur et peut aussi dépendre du sens d’écriture (propriété ltr)

éléments de bloc et éléments dont la propriété display vaut table-cell ou inline-block

oui

visual

text-decoration

none | [ underline || overline || linethrough || blink ] | inherit

none

non

visual

text-indent

<Längenangabe> | <Prozentwert> | inherit

0

éléments de bloc et éléments dont la propriété display vaut table-cell ou inline-block

oui

se rapportent à la largeur du bloc conteneur

visual

text-transform

capitalize | uppercase | lowercase | none | inherit

none

oui

visual

top

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments positionnés

non

se rapportent à la hauteur du bloc conteneur

visual

unicode-bidi

normal | embed | bidi-override | inherit

normal

tous les éléments

non

visual

vertical-align

baseline | sub | super | top | text-top | middle | bottom | text-bottom | <Prozentwert> | <Längenangabe> | inherit

baseline

éléments en ligne et cellules de tableau

non

se rapportent à la valeur de line-height pour l’élément concerné

visual

visibility

visible | hidden | collapse | inherit

visible

oui

visual

white-space

normal | pre | nowrap | pre-wrap | pre-line | inherit

normal

oui

visual

widows

<Integerwert> | inherit

2

éléments de bloc

oui

visual

width

<Längenangabe> | <Prozentwert> | auto | inherit

auto

éléments de bloc et éléments en ligne remplacés

non

se rapportent à la largeur du bloc conteneur

visual

word-spacing

normal | <Längenangabe> | inherit

normal

oui

visual

z-index

auto | <Integerwert> | inherit

auto

éléments positionnés

non

visual

Le tableau des propriétés CSS 2.1 est protégé par le droit d’auteur : © 2005, World Wide Web Consortium (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). Tous droits réservés. W3C DOCUMENT LICENSE.

  

 

 

 

haut de page