Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a page with a bunch of HTML tables that I need to print.

Each table should fit on one page, but both Firefox and Safari want to break them over multiple pages and put more than one on a page.

Is there any way to force it to not break the tables across pages?

I can use any Mac program to print.

Thanks.

share|improve this question

2 Answers 2

It sounds like you want them all on separate pages, correct?

If so, and you have access to edit the HTML/CSS, wrap each table in a div and add 'page-break-after: always;' as a style for that div.

<div style="page-break-after:always">
    <table>......
    </table>
</div>

or setup a rule in your css like:

.pagebreak  {page-break-after:always;}

and add that class to each table's div element like:

<div class="pagebreak">
    <table>...</table>
</div>

I'm using divs for clarity, but you could also add that style to the table element in your css if you'd like.

If your content is just too big to fit one one page (which doesn't sound like the problem) then you may have to try resizing options like @John T mentions above.

-D

share|improve this answer

Have you tried using Shrink to fit Page Width in Firefox page setup and making the margins for each page bigger?

alt text

alt text

You may also want the Aardvark add-on to modify a selection before printing it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.