I have a bunch of paragraphs on the page:
<p> ... </p> <p> ... </p> <p> ... </p>
CSS rule for these paragraphs:
p { margin: 20px 0; page-break-inside: avoid; }
Live demo: http://jsfiddle.net/KE9je/2/show/
If I understand the page-break-inside property correctly, this should ensure that the paragraph is not split between the two pages. (The paragraph either appears on the "current" page, or if it does not fit completely, it has moved to the next page.)
On Chrome, this does not work. Open the demo, right-click on the page, select "Print ...". You will see a print preview - the fifth paragraph is divided between pages 1 and 2.
What am I doing wrong? How can I make this work in Chrome?

html css google-chrome
Ε ime Vidas Oct 09 '11 at 20:57 2011-10-09 20:57
source share