I have several itens in a form and they sometimes need to be printed in 2 papers.

The problem is:

[fieldset] [a lot of checkboxes and label] [/fieldset]

When click in Print Preview, there is no second page but instead one page with the form sliced.

alt text

If i change to

this problem does not happen. But I need feature or it will be ugly.

What can I do?

edit: alt text

  • Why would anyone print a web form? :) Dwayne Anderson over 7 years ago
  • Because the guy who gonna use it won't carry a laptop to fill the fields where he's going to work. Ismael over 7 years ago
  • I'd make a PDF form that will print nicely... Dwayne Anderson over 7 years ago
  • @Dwayne Anderson Good Idea. Ismael over 7 years ago

3 answers

0
points

you could experiment with the page-break-before property (and the other paged media optons)

read more here:

http://reference.sitepoint.com/css/page-break-before

e.g. use:

fieldset.newpage{
  page-break-before: always;
}

and add class="newpage" to fieldsets that would otherwise be split

Answered over 7 years ago by Tony Crockford
  • Nice try but didn't work as expected. Each fieldset now is printed in new page. But, the fieldset with exceded height still showed by half instead display in different pages. Ismael over 7 years ago
  • you can be choosy about which ones, that was why I suggested a class for *some*, not all. You may have to spilt the fieldset up by adding a page break in the middle of it. Share the code, so we can play with it? Tony Crockford over 7 years ago
0
points

I have found issues in the past where a container of the item you are printing has overflow:hidden set. It then wont print across more than one page.

Answered over 7 years ago by David Taylor
  • It wasn't the problem too. oh god... Ismael over 7 years ago
Rikin 0
0
points

This is a known bug with Firefox. Fieldset in firefox will print only on a single page. For example: If you have two fieldsets in a form, fieldset1 will print on one page regardless of its size, and fieldset2 will print on other page. By any chance if any of the fieldset is more in size than page size, other data will not print on next page. So for printing page, its better to use

.

Answered over 6 years ago by Rikin