Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Inserting Page breaks when printing an html document

Reply
Thread Tools

Inserting Page breaks when printing an html document

 
 
judgejudy
Guest
Posts: n/a
 
      04-20-2006
I would like to insert a new page character in an html document or
something to that effect. It would force a printer to print on a new
page for a html document.

Does anyone know whether this is possible or how I would go about it?
 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      04-20-2006
Deciding to do something for the good of humanity, judgejudy
<> declared in alt.html:

> I would like to insert a new page character in an html document or
> something to that effect. It would force a printer to print on a new
> page for a html document.


http://allmyfaqs.net/faq.pl?How_do_I_force

> Does anyone know whether this is possible or how I would go about it?


You can *suggest* it with CSS:

#newpage {page-break-before: always;}

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
 
 
 
Disco Octopus
Guest
Posts: n/a
 
      04-20-2006
judgejudy wrote:

> I would like to insert a new page character in an html document or
> something to that effect. It would force a printer to print on a new
> page for a html document.
>
> Does anyone know whether this is possible or how I would go about it?


search for
css page-break-after
and
css page-break-before


--
if you pay for your gym memebership, use it
 
Reply With Quote
 
Jose
Guest
Posts: n/a
 
      04-20-2006
> I would like to insert a new page character in an html document or
> something to that effect. It would force a printer to print on a new
> page for a html document.
>
> Does anyone know whether this is possible or how I would go about it?


You are making the unwarranted assumption that the printer will print
what the viewer is supposed to see, whether the viewer is seeing it or
not. The text flows differently, the window is resizable while the
printed page is not, there are many considerations which limit the
desirability of forcing a page break.

I wish browsers would have better previews and better control over page
layout, so that web designers could not force stuff on me.

Jose
--
The price of freedom is... well... freedom.
for Email, make the obvious change in the address.
 
Reply With Quote
 
frederick@southernskies.co.uk
Guest
Posts: n/a
 
      04-20-2006
judgejudy wrote:
> I would like to insert a new page character in an html document or
> something to that effect. It would force a printer to print on a new
> page for a html document.
>
> Does anyone know whether this is possible or how I would go about it?


Although CSS could be used in theory for this, I'd suggest offering a
PDF version if high quality print presentation is needed.

The problem is that, as with screen display, you have no control over
what font will be used for printing, and hence even with an enforced
point size you couldn't guarantee where a page would end. Also,
depending on who uses your site, you hit problems with North American
vs. ISO paper sizes.

Oh, and there's also the issue of people adjusting margins in their
browser's print preview...


--
AGw.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX update panel inserting line breaks Emma Middlebrook ASP .Net 1 04-23-2008 04:00 PM
inserting line breaks in text quoted in javascript alice Javascript 19 03-24-2007 01:30 AM
Inserting Page Load Times into HTML Source as a HTML Comment ste-m Javascript 1 11-01-2006 03:18 AM
inserting word document into front page express web page Route 9w Computer Support 7 01-31-2004 04:37 PM
Re: Need advise regarding printing and page breaks ... brucie HTML 0 06-24-2003 09:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57