Page break for printing

M

moondaddy

I have a page that I'm making for the sole purpose of printing and this page
makes 1.5 printed pages. Is there a way to force a print page break at a
specific place so when the user prints the page, it wont arbitrarily break
in the middle of a table or line of text?

Thanks.
 
S

Steven Cheng[MSFT]

Hi Moondaddy,

As for the adding a page break in a web page you mentioned, I've done some
research and find that there is a
" page-break-after" css property that we can use in web page. This property
can be used in html element and force the page to break when it is printed
out. For example:
<html>
<body>

This is the text for page #1.

<p style="page-break-before: always">

Page #2...

<p style="page-break-before: always">

Page #3...

</body>
</html>


For detailed description, you can view the following reference:

#The page-break-after property
http://www.w3schools.com/css/pr_print_pageba.asp

#How do I put page breaks in a web page
http://www.chami.com/tips/internet/052898I.html

#Notice that this css propety is not supported by all the browsers and it
recommended to be used as less as possible.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top