This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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%?
 
Similar Threads
problem in running a servlet
Error comes whilke compiling the jsp page
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.
change of logo image src in JSP
Starting new row after every 4 table cells using c:forEach