Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page break

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hi All,

<p style='page-break-after: always'>

This will work in FF but won't work in IE. Does anyone know how to break the page in IE7? Thanks.

-kendel
 
Yes I did.

If you are interested:

Code:
<head>
<STYLE>
    H3 { page-break-before: always }
</STYLE>
</head>

<H3>This work for IE7</H3>
 
I'm not personally interested, but it's always good etiquette to post a solution if you find the answer to your question so that anyone who comes along later can benefit from it.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
I'm sorry, I know what you mean. I should have said "for those who are interested ...." Thanks.
 
I found this thread and other discussions on this subject, but it took me a while to find a solution that worked for me, and the clue was found outside Tek-tips, so I thought I'd let the Tek-tips community know what I learned.

It seems that "page-break-before" is broken in IE7 (some say it works if you have content in the div, but that wasn't true in my case), but "page-break-after" works fine. Go figure! Anyway, perhaps this information will help someone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top