Toby
Toby

Reputation: 8792

Table content held within a div will not print over several pages

I have some tabular content that is held within a div thus..

<div class="someDiv">
   <table>
       <tr>...</tr>
       ....
       ....
       <tr>...</tr>
   </table>
</div>

When I print using a print stylesheet with all items set to float:none !important; and height:auto !important; the table will only print one page worth of information as opposed to about 10 or so.

Has anyone come across this before?

Upvotes: 0

Views: 575

Answers (2)

Toby
Toby

Reputation: 8792

The fix was to add

* { overflow:visible ! important; }

Upvotes: 2

DOK
DOK

Reputation: 32831

Could it be as simple as CSS syntax?

I see in this old article (where I first heard of this) they have a space between the exclamation point and the word important.

I also see a space here (section 3.1 is about important).

Does your CSS code have that space?

Upvotes: 1

Related Questions