Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing to span multiple pages

Status
Not open for further replies.

kpetursson

Programmer
Jan 28, 2002
313
US
Hi,

I'm in the process of developing a database backed web page, and at one point I have a long list in a table, that sites in a form that sits in a div.
When I try to print the div, or form (I'm not sure which) cuts off the rest of the table when it exceeds the length of one page.

The Question:
How do I make it so I can print the whole table so that it spans multiple pieces of paper if necessary?

http://toylibrary.byethost2.com/toysout.php

Any general comments about the site are also welcome (ie layout, colours, whatever).

Thanks for the help.

Kevin Petursson
--
"Everyone says quotable things everyday, but their not famous... so nobody cares."... Some Person
 
Previewing it both on Mozilla and IE, the whole table did span multiple pages for me. I couldn't print it out because I don't have a printer hooked up here, but I am pretty sure it would print out exactly like the preview shows. Which browser is giving you trouble?
 
I looked at it in FF print preview. If you set the orientation to "Landscape", it loses the last few rows of the table. That said, it might do a better job when it actually comes to printing it.

The only thing I could see that might cause it is that the CSS gets the whole content <div> to float. Floating elements sometimes confuse the printing algorithm, so it might be the root of the problem.

What I suggest you do is add this to your print stylesheet:
Code:
#content { float: none; }

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top