Solved

page break

Posted on 1999-01-23
2
164 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 20 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

840 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