Page break on your web page

We can easily specify page break on your pages via CSS. It is just a line of code.

.page-break {
	page-break-after: always;
}

Then apply the class to an element and the page break will be applied after that element.

<div class="page-break">
...
</div>

So now we can specify where our page ends by using this CSS. It is nice that W3C CSS has these kind of features. Cool!

This entry was posted in CSS and tagged , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *