?
Solved

page break

Posted on 1999-01-23
2
Medium Priority
?
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…
Suggested Courses

741 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