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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page-break-after: avoid - anyone got it to work?

Status
Not open for further replies.

starblood

Technical User
Feb 28, 2001
63
GB
I'd like to restrict page breaks when printing a webpage. I can get the page-break-after:always to work, but as soon as I substitute always for avoid in the code, it fails. MSDN says it should be an 'empty string' instead of always but I can't seem to get this to work either:


I'm using IE6, is this feature supported? I'm starting to think it isn't. Any code samples would be appreciated.
 
Thanks for that madhouse. I have pretty much come to the conclusion that IE6 does not support the feature because the code works in Opera 6. It just seemed strange to me that IE6 supported the command page-break-before but not all the values that could be assigned to it.

Opera 6 also supports page-break-inside which would've been the prefect solution to my needs, however I know IE6 doesn't support this standard:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top