View Full Version : page break does not work

01-10-2004, 12:46 AM
page-break-inside: avoid;
font-size: 50px;
<p>sssssssssssf sdlfkj ds;lkfj sadlkj sad;lkf;sjf;sdl afj;lsdk f;kaj;lkfjsdalkfd;slja; jsd;fksdja;l jsda;</p

what is wrong with this code?

01-10-2004, 01:17 AM
Try: </p --> </p>

01-10-2004, 01:20 AM
that was a stupid mistake... but it did not fix the problem


01-10-2004, 01:29 AM
I assume that font size makes that paragraph page break. Correct?

Now, if that is so: You have only that content on the page. One single paragraph, the browser HAS to page break somewhere, and because of the way your page is built it can only place the page break at one place, which is inside the paragraph. However, if you split that up into several paragraphs, you should find it page breaking in between them instead of in the middle of them.

01-10-2004, 11:27 AM
Note that the property value is avoid and not never-ever-break. As liorean said, the browser has to break somewhere.

01-10-2004, 01:30 PM
can i tell it to never-ever-break?

01-10-2004, 02:09 PM
if you could - you'd need very big paper....

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum