|
|
|
|
|
by romey
4438 days ago
|
|
"page-break-inside: avoid" and "page-break-after" seem to work fairly reliably, as long as you aren't doing too much weird stuff with positioning, floats, etc. Three major problems I've had with printing from HTML is
1) It seems that the different browsers have different default margins, and the outside margins aren't controllable from CSS
2) The javascript print dialog doesn't give any sort of feedback...it just blocks JS execution. There's no way to no if the user cancelled the print, etc.
3) Different browsers don't reliably resize things to fit on the page. Using percentages for anything (while maybe not recommended anyway) just doesn't work for printed CSS |
|