Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Insert a "page break" into web page?

New Here ,
Dec 11, 2006 Dec 11, 2006
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
TOPICS
Server side applications
418
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2006 Dec 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
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2006 Dec 12, 2006
LATEST
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".
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines