aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML does not print properly - table width exceeding 100%?