printing size to big!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
joecrack
Forum Commoner
Posts: 99
Joined: Mon Oct 31, 2005 9:17 pm

printing size to big!

Post by joecrack »

i have a problem with my printinglayout.
it is a very big table that needs to be printed.
when you see the table in the browser the font size needs to be something like 8pt so that anybody is able to read it. but when it comes to the printing it needs to be something like 4pt to fit it on the A3 paper.
so i didnt find a css option that changes the font size when you print it out.
how can i solve this? i hope someone can help me with this prob.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

search around for the media property/attribute
User avatar
ed209
Forum Contributor
Posts: 153
Joined: Thu May 12, 2005 5:06 am
Location: UK

Post by ed209 »

use (expansion on above reply)

Code: Select all

<style type="text/css" media="screen">
         /*  make your font 8pt in here for viewing on screen / browser */
</style>

<style type="text/css" media="print">
         /*  make your font 4pt in here for printing */
</style>


also, 4pt seems quite small....
Post Reply