CSS orphans Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Typography & Print

What You’ll Learn

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.

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.

📝 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.

🎯 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.

⚡ Quick Reference

QuestionAnswer
Initial value2
Applies toBlock containers
InheritedYes
AnimatableNo
Common usePrint layouts and multi-column text

💎 Property Values

ValueExampleDescription
Integerorphans: 3;Specifies the minimum number of lines that must remain at the bottom of a page or column
2orphans: 2;Default value; keeps at least two lines together at the bottom
1orphans: 1;Allows a single line to remain at the bottom if needed
2 — default 3 — stricter breaks widows — top-line partner

👀 Live Preview

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.

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>

<div class="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>
Try It Yourself

How It Works

The browser tries to avoid leaving fewer than three lines alone at the bottom before a break.

Example 2 — Multi-Column Article

Apply orphans to flowing text inside CSS columns.

columns-orphans.css
.article {
  column-count: 2;
  column-gap: 2rem;
  orphans: 3;
  line-height: 1.65;
}
Try It Yourself

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.

print-orphans.css
@media print {
  p {
    orphans: 3;
    widows: 3;
  }
}
Try It Yourself

How It Works

Print media is where orphan and widow control is most noticeable to readers.

Example 4 — orphans and widows Together

Balance both sides of a break for professional typography.

orphans-widows.css
.story {
  column-count: 2;
  orphans: 3;
  widows: 3;
}
Try It Yourself

How It Works

Using both properties gives you control over lonely lines on either side of a column or page break.

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;
}

♿ 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.

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 Chrome 25+ · Desktop & Mobile
Full support
Mozilla Firefox 20+ · Desktop & Mobile
Full support
Apple Safari 7+ · macOS & iOS
Full support
Microsoft Edge 12+ · Modern versions
Full support
Internet Explorer Limited or no support
Partial
orphans property 92% supported

Bottom line: Safe for modern print and multi-column typography; test legacy browsers if needed.

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.

💡 Best Practices

✅ Do

  • Use orphans in multi-column and print layouts
  • Pair with widows for balanced breaks
  • Start with the default 2 or try 3
  • Combine with readable line-height and column width
  • Test printed output when typography matters

❌ Don’t

  • Expect major effects on short single-line blocks
  • Confuse orphans with widows
  • Rely on it for general spacing between elements
  • Assume every browser renders breaks identically
  • Forget to test column layouts on real content lengths

Key Takeaways

Knowledge Unlocked

Five things to remember about orphans

Use these points when polishing text layout across breaks.

5
Core concepts
02

Default 2

Two lines kept.

Default
📄 03

Integer Values

0, 2, 3, etc.

Values
🖨 04

Print & Columns

Main use cases.

Use case
🔁 05

widows Pair

Top-line control.

Companion

❓ Frequently Asked Questions

orphans sets the minimum number of lines in a block that must stay at the bottom of a page, region, or column before a break occurs.
The default value is 2, so at least two lines are kept together at the bottom unless you change it.
orphans controls lines left at the bottom before a break, while widows controls the minimum lines required at the top of the next page or column.
It is most useful in print layouts and multi-column text where you want to avoid awkward single-line fragments at column or page breaks.
It can apply to multi-column layouts on screen, but it is most commonly used for print and paged media typography.

Practice in the Live Editor

Open the HTML editor and experiment with orphans in multi-column text layouts.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful