Orphans Property

Last updated: 2026-09-13

orphans Orphans Property

orphans controls the minimum number of lines from the end of a paragraph that must remain at the top of a new page when printing, defaulting to 2. It is a CSS paged-media property that prevents a paragraph's last line from appearing alone at the bottom of the previous page (an 'orphan'), improving printed readability.

Category
Initial Value2
InheritedYes
Applies To
Animation Type
CSS VersionCSS2
StatusStandard

📝 Syntax

orphans: <integer>;

⚙️ Values

ValueTypeDescription
<integer>TypeMinimum lines at the end of a paragraph

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
orphans v10 v12 v1 v1 v1
Supported in all major browsers
Tip: orphans and widows only take effect in paged media (print); screen display is unaffected.

❓ FAQ

QWhat is the difference between orphans and widows?
Aorphans controls the minimum lines kept at the top of the next page from the end of a paragraph, so the paragraph's last line never sits alone at the page top. widows controls the minimum lines kept at the bottom of the previous page from the start of a paragraph, so the first line never sits alone at the page bottom. Both are paged-media properties; used together they keep paragraphs intact.
QWhy is the default value of orphans 2?
AA single orphaned line at the page top noticeably hurts readability, and typographic conventions require at least two lines to form a complete paragraph block. Hence browsers default to orphans: 2 — if fewer than two lines would remain at the page break, the whole paragraph moves to the next page. Print publishing often sets 3 or higher for cleaner page breaks.
QCan orphans be set to 0?
AYes. The syntax accepts any non-negative integer. Setting 0 allows zero lines to be kept (i.e. orphaned lines are allowed), but it is not recommended because orphans break reading flow. Common values are 2 to 4, usually matched with widows, e.g. orphans: 3; widows: 3;, so paragraphs keep at least three lines at both ends.
QIn what scenarios does orphans take effect?
AOnly in paged media: printing, print preview, PDF export, and some e-book renderers. Web pages scroll continuously and have no 'pages', so the property does nothing there. Long printed documents (reports, theses, contracts) should set orphans and widows inside @media print to keep paragraph first/last lines from being split across pages.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏