The widows property specifies the minimum number of line boxes that must appear at the top of a fragmentainer (page / column) after a break. Complements orphans (which handles end-of-fragment lines). Initial value is 2.p {
widows: 3;
}@media print {
p {
widows: 4;
orphans: 4;
}
}min:0max:9999step:1units:CSS Fragmentation Module Level 4Editor's DraftW3CMDN In the beginning God created the heavens and the earth. Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters. And God said, “Let there be light,” and there was light.
God saw that the light was good, and he separated the light from the darkness. Show all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext