Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
code_language:css [2022/04/28 07:26] 86.201.9.2 |
code_language:css [2025/12/17 23:57] (Version actuelle) 216.73.216.214 ancienne révision (2022/04/28 07:57) restaurée |
||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| Fichier qui permet de paramétrer la mise en forme d'un fichier HTML. | Fichier qui permet de paramétrer la mise en forme d'un fichier HTML. | ||
| - | ==== Principale propriétés | + | ==== Propriétés |
| + | ^ Propriété ^ Valeurs ^ Description ^ | ||
| + | | font-family | police1, police2, police3, serif, sans-serif, monospace | Nom de police | | ||
| + | | @font-face | Nom et source de la police | Police personnalisée | | ||
| + | | font-size | 1.3em , 16px, 120% | Taille du texte | | ||
| + | | font-weight | bold, normal | Gras | | ||
| + | | font-style | italic, oblique, normal | Italique | | ||
| + | | text-decoration | underline, overline, line-through, | ||
| + | | font-variant | small-caps, normal | Petites capitales | | ||
| + | | text-transform | capitalize, lowercase, uupercase | Capitales | | ||
| + | | font | - | Super propriété de police, bombine: font-weight, | ||
| + | | text-align | left, center, right, justify | Alignement horizontal | | ||
| + | | vertical-align | baseline, middle, sub, super, top, bottom | Alignement vertical (cellules de tableau ou éléments inline-block uniquement | | ||
| + | | line-height | 18px, 120%, normal | Hauteur de ligne | | ||
| + | | text-indent | 25px | Alinéa | | ||
| + | | white-space | pre, nowrap, normal | Césure | | ||
| + | | word-wrap | break-word, normal | Césure forcée | | ||
| + | | text-shadow | 5px 5px 2px blue (horizontale, | ||
| + | ==== Propriété de couleur et de fond ==== | ||
| + | ^ Propriété ^ Valeurs ^ Description ^ | ||
| + | | color | nom, rgb(rouge, | ||
| + | | background-color | nom, rgb(rouge, | ||
| + | | background-image | url(' | ||
| + | | background-attachment | fixed, scroll | Fond fixe | | ||
| + | | background-repeat | repeat-x, repeat-y, no-repeat, repeat | Répétition du fond | | ||
| + | | background-position | (x y), top, center, bottom, left, right | Position du fond | | ||
| + | | background | - | Super propriété du fond. Combine: background-image, | ||
| + | | opacity | 0.5 | Transparence | | ||
| + | |||
| + | ==== Propriétés des boîtes ==== | ||
| + | ^ Propriété ^ Valeurs ^ Description ^ | ||
| + | | width | | | | ||
| + | | height | | | | ||
| + | | min-widht | | | | ||
| + | | max-widht | | | | ||
| + | | min-height | | | | ||
| + | | max-height | | | | ||
| + | | margin-top | | | | ||
| + | | margin-left | | | | ||
| + | | margin-right | | | | ||
| + | | margin-bottom | | | | ||
| + | | margin | | | | ||
| + | | padding-left | | | | ||
| + | | padding-right | | | | ||
| + | | padding-bottom | | | | ||
| + | | padding-top | | | | ||
| + | | padding | | | | ||
| + | | border-width | | | | ||
| + | | border-color | | | | ||
| + | | border-style | | | | ||
| + | | border | | | | ||
| + | | border-radius | | | | ||
| + | | box-shadow | | | | ||
| + | |||
| + | ==== Propriétés de positionnement et d' | ||
| ^ Propriété ^ Valeurs ^ Description ^ | ^ Propriété ^ Valeurs ^ Description ^ | ||
| | | | | | | | | | | ||
| Ligne 16: | Ligne 70: | ||
| | | | | | | | | | | ||
| | | | | | | | | | | ||
| - | | | | | | + | |
| - | | | | | | + | |
| + | |||
| + | |||