This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes HTML does not print properly - table width exceeding 100%? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML does not print properly - table width exceeding 100%?" Watch "HTML does not print properly - table width exceeding 100%?" New topic
Author

HTML does not print properly - table width exceeding 100%?

Mike Dell
Greenhorn

Joined: Sep 28, 2009
Posts: 10
The following HTML looks fine in the browser (both IE6 and Firefox) but when it is printed, I notice some weird things.

Even though I have set the width of all of the tables to be 100%. The width of the detailsTable (the one with the "PRODUCT 1" in it) is wider than the others and even gets cut off when I print it in IE.

I cant seem to figure out why it does this. Any ideas?

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
cm? Never seen anyone actually use that.

For printing, why don't you create a print style sheet and make it fit to a known size page.


Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML does not print properly - table width exceeding 100%?