WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Printing a specific area, Guillermo, September 17, 2003
     Re:Printing a specific area, Brian R. James, September 18, 2003

Subject: Re:Printing a specific area From: Brian R. James Date: September 18, 2003

Use the @media CSS rule

<style type="text/css">
// For computer screens, the font size is 12pt.
@media screen {
   BODY {font-size:12pt;}
}
// When printed, the font size is 8pt.
@media print {
   BODY {font-size:8pt;}
}
</style>

From: Guillermo
Sent: September 17, 2003
Subject: Re:Printing a specific area

I have a page with a "Print Page" button, and I want to only print a specfiic table (or div/span) from the page, no the entire page. Is this possible? I remember reading something about CSS with different values for Screen or Print, but I don't know if this is the case.





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX