Propriété CSS orphelins
Exemple
Lors de l'impression, affichez au moins 4 lignes en bas et 2 lignes en haut de chaque page :
@media print {
orphans: 4;
widows: 2;
}
Définition et utilisation
La orphans
propriété spécifie le nombre minimum de lignes qui doivent être laissées au bas d'une page ou d'une colonne.
Astuce : Regardez aussi la propriété.
widows
Valeur par défaut: | 2 |
---|---|
Hérité: | Oui |
Animable : | non. En savoir plus sur l'animation |
Version: | CSS3 |
Syntaxe JavaScript : | objet .style.orphans = "3" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
Syntaxe CSS
orphans: integer|initial|inherit;
Valeurs de propriété
Value | Description |
---|---|
integer | Specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |