Skip to main content
Participant
December 12, 2006
Question

Insert a "page break" into web page?

  • December 12, 2006
  • 2 replies
  • 413 views
Creating a certain set of pages for a client's site that will primarily be printed by the viewer. Client wants to be able to insert functional page break commands at critical spots in a page. Anybody got a sweet bit of code to do this simply and reliably?

Much appreciated --

Yairah
This topic has been closed for replies.

2 replies

Participant
December 12, 2006
i would suggest creating a second (if you already have one) style sheet to get all the pages on your site to have nice printed versions (I cleverly call mine print.css) and add one line of code to your html document's header:

<link rel="stylesheet" media="print" href="print.css" type="text/css" />

When a user selects the "Print" function from their web browser, your print.css file is substituted for the default stylesheet. The print.css file will be similar to your global stylesheet, but should contain the changes you wish to see on a printout. try googling print.css. *Note the atribute media is set to "print". my standard style sheet has media="screen".
Inspiring
December 12, 2006
Use CSS and the page-break-before/page-break-after styles?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"hrh_abe" <webforumsuser@macromedia.com> wrote in message
news:ell946$b75$1@forums.macromedia.com...
> Creating a certain set of pages for a client's site that will primarily be
> printed by the viewer. Client wants to be able to insert functional page
> break
> commands at critical spots in a page. Anybody got a sweet bit of code to
> do
> this simply and reliably?
>
> Much appreciated --
>
> Yairah
>