On 6/17/06, Tom Anthony [EMAIL-REMOVED]> wrote:
> I'm interested in adding a print style sheet to a site. The problem I
> am having is that any images on the page often get split over 2
> pages, which defies the point of people printing it.
> I understand that the page breaks are browser dependant, but is there
> anything I can do to help them along? I'm printing with Safari 2.0.3
> and it happens, it would be great to get this sorted. The alternative
> is creating and updating PDFs for all these pages which, being
> database driven, is really not a good option.
In my experience browser support for CSS print styles is spotty at
best. The properties that are supposed to give you some control over
this are, IIRR, page-break-before and page-break-after. You can try
applying "page-break-before: always;" to your image to give it room to
render, but as I said I've found support rather spotty between
browsers. Take a look at the documentation here:
http://www.w3schools.com/css/pr_print_pageba.asp which I got from a
simple google search on "CSS page-break-before".
Good luck - I haven't had much with these rules, I must admit.
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/