Insert a page break in HTML

Discussion in 'ASP .Net' started by Danny Ni, Nov 18, 2004.

  1. Danny Ni

    Danny Ni Guest

    Hi,

    Is it possible to enter a page break in a HTML document, when a HTML
    document is diplayed in browser and user click print, the browser takes
    control of paging . I would like the browse to print to a certain point in
    the document and eject the page and continue printing on the next page. Is
    this possible?

    TIA
    Danny Ni, Nov 18, 2004
    #1
    1. Advertising

  2. You can do this using styles:

    page-break-before: always;

    I would suggest you put this in the tag which should appear at the top of
    each page. e.g.

    <h2 style="page-break-before: always;">Some text</h2>

    This does require the browser to support CSS level 2 but will work
    definitely in IE and Firefox.

    Alan

    "Danny Ni" wrote:

    > Hi,
    >
    > Is it possible to enter a page break in a HTML document, when a HTML
    > document is diplayed in browser and user click print, the browser takes
    > control of paging . I would like the browse to print to a certain point in
    > the document and eject the page and continue printing on the next page. Is
    > this possible?
    >
    > TIA
    >
    >
    >
    =?Utf-8?B?QWxhbiBMYW1iZXJ0?=, Nov 18, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWFyZHk=?=

    Insert a line break in a label control

    =?Utf-8?B?TWFyZHk=?=, Jul 30, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    8,156
    =?Utf-8?B?TWFyZHk=?=
    Jul 30, 2005
  2. Stefan Mueller

    How to add a page break to a HTML page

    Stefan Mueller, Mar 9, 2006, in forum: HTML
    Replies:
    2
    Views:
    163,392
    Stefan Mueller
    Mar 10, 2006
  3. pavan
    Replies:
    2
    Views:
    416
    Greg Young
    May 5, 2006
  4. Julia B
    Replies:
    5
    Views:
    477
    Julia B
    Jan 29, 2008
  5. Replies:
    12
    Views:
    961
Loading...

Share This Page