Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1035577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:33:52+00:00 2026-05-16T14:33:52+00:00

The CSS page-break-after attribute looks like what I want. Is it? This is an

  • 0

The CSS page-break-after attribute looks like what I want. Is it? This is an intranet application for Firefox users, so browser compatibility is not a large concern.

Here’s the background. I have a web application that generates medical forms. Right now the users click on individual forms and print out the result on at a time. They want a single button that will let them print all the necessary forms at once. The HTML forms are templated in such a way that I can concatenate them together, the problem is the page break. I need to put a page break between forms so they paginate properly when printed.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:33:53+00:00Added an answer on May 16, 2026 at 2:33 pm

    It’s hard to do this in a non-hackish way, it seems. However, I did get some good results in Firefox using the following:

    div.page {page-break-inside: avoid; page-break-before: always;}
    

    If I remember correctly, ‘page-break-inside’ is what would have been ideal, but didn’t completely work in FF. ‘page-break-before’ worked nicely for me. Just make sure you don’t apply it to the very first div (or whatever element you use); otherwise, the first page to be printed will be blank.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Firefox the page-break-after: always; directive is working fine. However, this same code is
Modern browsers are supposed to support the CSS page-break properties to some degree. However
Possible Duplicate: CSS: Ways to break list into columns on page? I was looking
What is the CSS code to do a page break when printing? Or better
My CSS for golf scorecard is <style type=text/css media=print> BODY { PAGE-BREAK-BEFORE: always; width:100%;
First of all I am using JQGrid in my application. After changing my CSS
Does the star selector in CSS affect page rendering performance? Are there any caveats
While I was doing CSS for a page I found that when I used
How can I save html page with css and images, then to local show
I have 2 css files in my page: Site.css jquery-ui.css Site.css is listed BELOW

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.