CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    I need information

    Is there a way to generate a page break in HTML ?
    Nicolas Bohemier

  2. #2
    Join Date
    May 1999
    Location
    New Jersey, USA
    Posts
    369

    What do you mean by "page break"

    Do you mean line break eg. <br />?

  3. #3
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080
    I mean when you print, you tell the printer to change page.
    Nicolas Bohemier

  4. #4
    Join Date
    Sep 1999
    Location
    Leeds U.K. (Proud to be Sheffield Born)
    Posts
    202

    Style wise

    I usually set a style up like this:
    <style media="print">
    .pagebreak {page-break-before:always}
    </style>

    and then assign the style with <... class="pagebreak"..> whenever I want a new page. Have a shufti at http://msdn.microsoft.com/workshop/a...reakbefore.asp for applicable element tags.

    Note, though, that this is an IE solution - any netscapers out there have any suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured