# widows

> The `widows` CSS property sets the minimum number of lines that must be left at the bottom of a page or column when a page break occurs within a block of text.

## How do I stop single lines at the top of a printed page with CSS widows?

The property that sets the minimum number of lines that must be left at the bottom of a page or column when a block of text is broken. It prevents awkward breaks by ensuring a certain number of lines remain on the page.

- Topic: Print Styles
- Type: property
- Browser support: Chrome 25+, Chrome Android 25+, Edge 12+, Firefox: not supported, Firefox Android: not supported, Safari 1.3+, Safari iOS 1+

## Example

Wrong:

```css
p {
  widows: 0;
}
```

Right:

```css
@media print {
  p {
    widows: 3;
    orphans: 3;
  }
}
```

`widows` must be a positive integer, and it only matters where content breaks across pages or columns.

## Common mistakes

- Expecting `widows` to work on normal scrolling web pages.

## Key points

- Print rules with `widows` sit inside `@media print`.
- `widows` is paired with `orphans` to control both ends of a page break.

## Interview questions

### What is the difference between widows and orphans?

`widows` sets the minimum lines at the top of the next page; `orphans` sets the minimum lines left at the bottom of the previous one.

### Does widows work in multi-column layouts?

Yes, in browsers that support it, it also applies when text breaks between columns.

## Related cards

- [@media](https://wonderium.dev/css/media.md)
- [@page](https://wonderium.dev/css/page.md)
- [column-count](https://wonderium.dev/css/column-count.md)
- [print-color-adjust](https://wonderium.dev/css/print-color-adjust.md)
- [print()](https://wonderium.dev/js/print.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/widows
- Last updated: 2026-11-25
