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 gkittelson 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
Can you somehow have a style sheet that is only applied when a web page is printed? Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
These things are, AFAIK, only supported by IE above 3.x.

<link rel=&quot;stylesheet&quot; media=&quot;screen&quot; href=&quot;website.css&quot;>
<link rel=&quot;stylesheet&quot; media=&quot;print, embossed&quot; href=&quot;print.css&quot;>
<link rel=&quot;stylesheet&quot; media=&quot;aural&quot; href=&quot;speaker.css&quot;>

HTH, Sascha cu, Sascha
 
How does it work? I am relatively new to style sheets. Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
You add these lines I've posted in the HEAD of your HTML document. Then you create the stylesheets website.css, print.css and speacker.css with the appropriate styles. Thats it. cu, Sascha
 
So if I wanted an image to be displayed the right way up when viewed in a browser but rotated 90 degrees when printed, how could I do that? Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top