Although downcodes.com has introduced you to a lot of knowledge about CSS properties, some very unpopular properties are still lacking. In B/S programs, CSS is relatively weak in controlling printing pages. For example, automatic paging has basically no practical use. We usually need to force the browser to paginate when needed. In this case, we can use the following style:
Example Source Code
[www.downcodes.com] <style type="text/css">
.w3cbbs { page-break-after:always;}
</style>
auto: Has no effect on page splitting.
always: Forces the page separator to appear after the element.
avoid: Avoid page breaks after elements.
left : Inserts a page break after the element until it reaches a blank left page margin.
right : Inserts a page break after the element until it reaches a blank right margin.
inherit: Use the same attribute value as the parent element.
When web printing is paginated, labels can be inserted where paging is required.
Example Source Code
[www.downcodes.com] <p class="downcodes"></p>,
or
<div class="downcodes"></div>
That’s it!