Solved

page break

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now