[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

page break

Posted on 1999-01-23
2
Medium Priority
?
190 Views
Last Modified: 2010-04-09
If someone prints a page I would like to insure
page breaks at various points.  How can I do that?
And, can I do it without upsetting the page display?
Would like to do this within html - no script, no java, no ________.
0
Comment
Question by:hank1
2 Comments
 
LVL 1

Author Comment

by:hank1
ID: 1845609
Edited text of question
0
 
LVL 4

Accepted Solution

by:
chewymon earned 80 total points
ID: 1845610
Quick answer is you can't.  You can approximate this so it will work for most viewers.  After you set up your page, go to print preview.  This will show how it will print on your machine.  Adjust the spacing between elements until it breaks where you want it.  Add some space to allow for other machines being set up with different margins.  This will mostly work.

The other option is to create a printer friendly version of the page using <blockquote> and other tags to control format.  It won't always look good on the screen, but you can get it close.

The basic problem is that you have no control of font or margins on the users computer or printer, so you can only try for a middle of the road that will work for many users.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question