widows

How many lines do we move to a new page when printing?

Time to read: less than 5 min

Briefly

The widows property indicates how many lines of a paragraph can be moved to a new page at a minimum. It only works within the @media directive with the value print.

Example

        
          
          @media print {  p {    widows: 2;  }}
          @media print {
  p {
    widows: 2;
  }
}

        
        
          
        
      

How it is written

As a value, a number is indicated, meaning the minimum number of lines to be moved.