Solved

page break

Posted on 1999-01-23
2
170 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 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: 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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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 to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 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