Alex Rivera | Logout

Can I force an HTML document to be one page long?

Asked 2009-01-21T13:55:28.760
10

I am generating a document from HTML. Is there any way to force the HTML page to be one rendered as one printed page long?

I've done most of the page with <table> and <div> tags.

Edit
Report

1 Answer

2

Use PDF. You can force many things like font size, font type and many other parameters but any browser can decide they don't care and use whatever they want and so violate your prerequesites or decisions. HTML is not (repeat after me: is NOT) a presentation language.

In many cases, it will mostly work but nothing is certain.

answered 2009-01-21T14:06:01.110

Your Answer