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

Printing

Status
Not open for further replies.

Ladyhawk

Programmer
Jan 22, 2002
534
AU
Is there any way of stopping images getting cut off when a web page is printed? Maybe by automatically resizing them or something? Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
When I make a priteble page I set all sized in cm like so:
<IMG src=&quot;PassBackRed.gif&quot; style=&quot;width: 8cm; height: 5cm&quot; border=1>

When you want a new page you put in something like this before the element that has to go on the new page:
<p style=&quot;break-before: always&quot;></p>

In my experience this is ignored a lot of times by IE so to be sure that the rest goes on the new page I fill the page with white space:
<tr><td bgColor=#FFFFFF style=&quot;width: 4.9cm; height: 1.8cm&quot;></td></tr>
 
Also, when I'm trying to get applets to fit on a printed page (or tables for that matter) I use percentage width and heights, rather than pixels. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top