The orphans property helps you control how text breaks across pages and columns so stray lines do not get left behind alone at the bottom.
01
Line Control
Minimum bottom lines.
02
Syntax
Positive integers.
03
Default 2
Two lines by default.
04
Columns
Multi-column layouts.
05
Print
Paged media typography.
06
widows Pair
Controls top lines too.
Fundamentals
Introduction
The orphans property in CSS is used to control the minimum number of lines in a block container that must be left at the bottom of a page or column.
This property is especially useful for improving the readability of text by preventing the situation where only a few lines of text appear alone at the bottom of a page or column.
Definition and Usage
Think of an “orphan” line as a lonely line stranded at the bottom of a column or page before the rest of the paragraph continues elsewhere. Setting orphans: 3 tells the browser to keep at least three lines together at the bottom when possible.
Use it in articles, magazines, print stylesheets, and any multi-column text layout where clean breaks matter.
💡
Beginner Tip
Pair orphans with widows. orphans protects lines at the bottom of a break; widows protects lines at the top of the next page or column.
Foundation
📝 Syntax
The syntax for the orphans property is simple and allows you to specify an integer value.
syntax.css
element{orphans:<integer>;}
Here, the number represents the minimum number of lines that should remain at the bottom of a page or column.
Basic Example
orphans.css
p{orphans:3;}
Syntax Rules
The value must be a non-negative integer such as 2 or 3.
It applies to block containers like paragraphs and divs with flowing text.
It is most effective when content can break across pages or columns.
Use with widows for balanced typography at both sides of a break.
Defaults
🎯 Default Value
The default value of the orphans property is 2. This means that if the property is not explicitly set, at least two lines will be kept at the bottom of a page or column when possible.
Increase the value when you want stricter control and fewer isolated lines at break points.
Cheat Sheet
⚡ Quick Reference
Question
Answer
Initial value
2
Applies to
Block containers
Inherited
Yes
Animatable
No
Common use
Print layouts and multi-column text
Reference
💎 Property Values
Value
Example
Description
Integer
orphans: 3;
Specifies the minimum number of lines that must remain at the bottom of a page or column
2
orphans: 2;
Default value; keeps at least two lines together at the bottom
1
orphans: 1;
Allows a single line to remain at the bottom if needed
Two-column text with orphans: 3 and widows: 3 for cleaner breaks:
Good typography keeps paragraphs readable when they flow across columns. The orphans property helps prevent awkward leftover lines at the bottom of a column before the text continues in the next one.
When you publish long articles, small layout details like this make the page feel more polished and professional for readers on screen and in print.
Hands-On
Examples Gallery
Set minimum bottom lines in columns, print layouts, and combined widow/orphan rules.
📝 Basic Usage
Require at least three lines at the bottom of a text block.
Example 1 — Text Block with orphans: 3
In this example, we set the orphans property to ensure that at least three lines of text are kept at the bottom of a column when possible.
orphans-block.html
<style>.example{orphans:3;width:300px;line-height:1.6;border:1px solid #cbd5e1;padding:1rem;}</style><divclass="example">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vel libero vehicula,
venenatis nisl et, congue dui. Aenean a nisi sit amet dolor sodales scelerisque.
</div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vel libero vehicula, venenatis nisl et, congue dui. Aenean a nisi sit amet dolor sodales scelerisque.
How It Works
The browser tries to avoid leaving fewer than three lines alone at the bottom before a break.
Multi-column layouts are common in magazines and long-form articles. Orphans helps keep paragraph fragments from looking stranded at the bottom of a column.
How It Works
When text wraps from one column to the next, orphan rules guide how many lines stay behind.
🖨 Print & widows
Use orphans in print styles and combine it with widows.
Example 3 — Print Stylesheet
Set orphan control for printed pages so paragraphs break more cleanly on paper.
Widows protect lines at the top of the next column or page.
How It Works
Using both properties gives you control over lonely lines on either side of a column or page break.
Companion
Pair with widows
orphans handles lines at the bottom of a break. The related widows property sets the minimum number of lines that must appear at the top of a new page or column.
typography-pair.css
article p{orphans:3;widows:3;}
A11y
♿ Accessibility
Readability first — Cleaner breaks help all readers follow long text more easily.
Do not hide content — Orphan rules adjust breaks; they should not remove meaningful text.
Test print views — Verify that print layouts remain readable when orphan rules apply.
Keep line length reasonable — Combine with good column width and line-height for best results.
🧠 How orphans Works
1
Text flows across a break
Content moves from one page, region, or column to the next.
Flow
2
You set a minimum line count
orphans: 3 asks the browser to keep at least three lines at the bottom.
Integer
3
The browser adjusts the break
Fewer awkward single-line fragments are left behind when possible.
Layout
=
📝
Cleaner typography
Text breaks look more balanced in columns and printed pages.
Compatibility
Browser Compatibility
The orphans property is supported in most modern browsers, including the latest versions of Chrome, Firefox, Safari, and Edge. It may not be supported in all versions of Internet Explorer. Testing across browsers is recommended.
✓ Baseline · Modern browsers
Good support for typography control
Current Chrome, Firefox, Safari, and Edge support orphans for columns and paged media.
92%Modern browser support
Google Chrome25+ · Desktop & Mobile
Full support
Mozilla Firefox20+ · Desktop & Mobile
Full support
Apple Safari7+ · macOS & iOS
Full support
Microsoft Edge12+ · Modern versions
Full support
Internet ExplorerLimited or no support
Partial
orphans property92% supported
Bottom line: Safe for modern print and multi-column typography; test legacy browsers if needed.
Wrap Up
Conclusion
The orphans property is a useful tool for managing the layout of text within block containers, ensuring a more polished and readable presentation.
By specifying the minimum number of lines that should remain at the bottom of a page or column, you can improve the overall aesthetics and usability of your content. Experiment with different values to find the best fit for your design needs.