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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table width for printing 2

Status
Not open for further replies.

RobBroekhuis

Technical User
Oct 15, 2001
1,971
US
I'm generating a page for purposes of printing, with its main contents in a table. What measures can I take to make sure the page will be printed without being cut off on standard US paper? Do I need to set the table width in absolute units rather than %?

Rob
[flowerface]
 

Rob,

I found certainly that for A4 size, a table width of around 640 to 650 pixels was about right for me needs, so if you did go with an absolute size, it would probably be aroun 650 to 680 pixels wide, or so.

If you use 100%, that should also work.

Hope this helps,

Dan
 
Thanks. Indeed 100% seems to work fine. For future reference, what causes some web pages to be cut off when printed?
(ps: I tried to give you a star, but the powers that be don't seem to agree: all three times I tried, it hung up IE beyond recovery...)


Rob
[flowerface]
 

Yes - things that have a pixel width too great will cause printing to go off the page - something which even the best websites can't seem to fathom out (and very annoying for me every time it happens!)

Weird about the star thing - works for me all the time...Certainly in IE6.

Dan
 
Pffft. I just tried again, now in the other thread where you're helping me (just to see if it was specific to here). No go - hung up again. I wonder if their javascript is going amuck.


Rob
[flowerface]
 

Works every time for me. Tried in a different browser?

BTW - I find that when IE tries to open a popup window (as Tek-Tips does when you vote), it can take up to 30 seconds for the window to open - more so if you have more than one IE window open (and certainly if you have 5, 10, or more open).

If this is the case, click the link, leave it 30 seconds and see if you get any joy.

Dan
 
Set defined pixel withs for anything other than a picture is a bad idea... percentages render better not only in print but also in browsers that:
1. Are not maximized (width set by users drags)
2. Maximized on different resolutions (I hate scrolling horizontally if it can be avoided)
3. On text only browsers common for us *nix geeks and gadet gurus... With the advent of phones that browse, and and never knowing the width/height of the users window, never use absolute width/height.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top