--- title: widows slug: Web/CSS/widows tags: - CSS - CSS Eigenschaft - CSS3 - Layout - Referenz - Web - mehrspaltiges Layout - print translation_of: Web/CSS/widows ---
Die CSS-Eigenschaft widows legt die Mindestanzahl von Zeilen in einem Blockcontainer fest, die oben auf einer Seite, einem Bereich oder einer Spalte angezeigt werden müssen.
/* <integer> values */ widows: 2; widows: 3; /* Global values */ widows: inherit; widows: initial; widows: unset;
Hinweis: In der Typografie ist ein Hurenkind die letzte Zeile eines Absatzes, die allein oben auf einer Seite angezeigt wird (der Absatz wird von einer vorherigen Seite fortgesetzt).
{{CSSInfo}}
<div> <p>This is the first paragraph containing some text.</p> <p>This is the second paragraph containing some more text than the first one. It is used to demonstrate how widows work.</p> <p>This is the third paragraph. It has a little bit more text than the first one.</p> </div>
div {
background-color: #8cffa0;
columns: 3;
widows: 2;
}
p {
background-color: #8ca0ff;
}
p:first-child {
margin-top: 0;
}
{{EmbedLiveSample("Controlling_column_widows", 400, 160)}}
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('CSS3 Fragmentation', '#widows-orphans', 'widows')}} | {{Spec2('CSS3 Fragmentation')}} | Erweitert widows, die auf alle Fragmenttypen angewendet werden können, einschließlich Seiten, Regionen oder Spalten. |
| {{SpecName('CSS3 Multicol', '#filling-columns', 'widows')}} | {{Spec2('CSS3 Multicol')}} |
Empfehlungen zur Berücksichtigung von |
| {{SpecName('CSS2.1', 'page.html#break-inside', 'widows')}} | {{Spec2('CSS2.1')}} | Initiale Definition. |
{{Compat("css.properties.widows")}}