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

page-break-inside: avoid does not work

Status
Not open for further replies.

Smarty

Programmer
Apr 12, 2001
191
BE
Hi,

I am building a dynamic agenda, with table blocks. For printing, I would like to keep the blocks together on a page, so I am using the following CSS style:
.keepblock
{
page-break-inside: avoid
}
Strange thing is that this doesn't work with printing, but when i convert this page into a pdf, it takes the blocks in one whole and avoids pagebreaks within this table.

Does anyone has got a reason and a solution why it works on converting to a pdf and NOT on a regular print of the webpage?
 
Hmm. I had this problem too (with IE6, not tested with other browsers). I ended up having to kludge one particular page to get it to print properly :(

Cheers,
Mike.

True wisdom is knowing when to RTFM.
 
Last time I checked only Opera browsers supported page-break-inside...
 
I'm using IE6 (company policy) so this might be the problem...
Anyone a solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top