page break in html?
page break in html?
- Started
- Last post
- 5 Responses
- ldww
is there any trick in html or css to make a page break? so when printing the page it will be on muliple pages?
at work we have to each page 1 by one, and i would love to make it one long page.
- stewart0
good one.
- ldww0
nm. i just found it.
css:
page-break-after: always;
- stewart0
after what
can you now specify where to break the page while printing the html page?
- ldww0
add this in your css:
.page {
page-break-after: always;
}then apply that class to the table, div, or span you want to be on a page. it will page break after that.
- ldww0
fyi this does not work on all browsers. see here:
http://www.westciv.com/style_mas…but since this is an internal page, i am using it cause we have control over what browsers are installed.