Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

break-before CSS property does not have any effect

  • 1 odgovor
  • 1 ima ovaj problem
  • 16 views
  • Posljednji odgovor poslao TyDraniu

more options

Firefox Quantum Version: 60.6.1esr (64-bit)

I am trying to force a page break before a `h3` type header title for printing an html page.

However, neither "page-break-before: always;" nor "break-before: page;" CSS properties work in Firefox.

Both of the properties work fine in Chrome. How can i force a page break in Firefox?

Firefox Quantum Version: 60.6.1esr (64-bit) I am trying to force a page break before a `h3` type header title for printing an html page. However, neither "page-break-before: always;" nor "break-before: page;" CSS properties work in Firefox. Both of the properties work fine in Chrome. How can i force a page break in Firefox?

Izmjenjeno od strane ubersonique

All Replies (1)

more options

"break-before: page" should work since Firefox 65. "page-break-before: always" is working since Firefox 1.

I just printed this example, and got 2 pages. https://jsfiddle.net/3oeka2v1/