Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში. აქ არავინ უნდა მოგთხოვოთ ტელეფონზე დარეკვა, შეტყობინების გაგზავნა ან პირადი მონაცემების გაზიარება. რამე საეჭვოს შემჩნევისას გთხოვთ გვაცნობოთ „დარღვევის მოხსენებით“.

ვრცლად

page-break-before is not working... suggestions?

  • 6 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა jscher2000 - Support Volunteer

page-break-before is not working. It does work on chrome. I need to force a page break. how can I do this?


 
page-break-before is not working. It does work on chrome. I need to force a page break. how can I do this? <div style="page-break-before: always;">&nbsp;</div>

ყველა პასუხი (6)

Superseded by break-before : Please see :

Please let us know if this solved your issue or if need further assistance.

OK, In chrome, or if I create a pdf, it works. When I print from Firefox, on any printer, it does not always work. If I have 2 page breaks close, the 2nd one does not work in Firefox.


I appreciate your help.

Attached is the skeleton of the HTML.

When I put just this code in a page, not one page break works. When however, I replace "(2)more content here" which is more content (> 1/2 page), then the first break works.... because it is more content???

If all 3 sections have content > 1/2 page, all the page breaks work. Again this issue exists only in Firefox.

Am I missing something?

ჩასწორების თარიღი: , ავტორი: Ed Arthur

W3C.org (World Wide Web Consortium) in charge of standards and practices and future development of web page code and web browsers. Pages rank higher in Google when code is correct. Use your Google Webmaster Account to submit and track.

HTML ERRORS - https://validator.w3.org/nu/?doc=http%3A%2F%2Fww38.yourschool.com%2F

CSS ERRORS - https://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yourschool.com%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

Please let us know if this solved your issue or if need further assistance.

Thanks for the screenshot.

I'm pretty sure the problem is on the first line. You're partially triggering Firefox's table layout rules, which do not paginate the same way as its block element layout rules.

Compare: https://www.jeffersonscher.com/res/page-break-before.html

Why do you use display:table for the outer div? Or to put that another way, can you get whatever effect you're looking for in some other way?