Welcome visitor
* Login
* Register
It is currently January 18th, 2019, 7:30 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  printing question
PostPosted: September 27th, 2009, 5:22 am 

Posts: 30
Do you know if it is possible to send to print one page but in deed get printed a very different thing? I tried to print one website but it did not pirint a way different, it printed different content. First I thought that it was something left on the que before but after 3 times a relized that I was printing the "right" site. Can someone explain please?


Top
 Profile  
 
  Re: printing question
PostPosted: September 27th, 2009, 5:35 am 

Posts: 96
Because internet is not only (though primarily) intended to be on screen media, CSS can be applied according to the targeted media its intended to be used with. So you can set up your page to look one way on the screen and another way on the printer. See this example, where the background on the screen is green but it will print red. The same can be done regarding the display attribute, it can be display: none on the screen and display: inline on the printer and thus you can print a compleatly different site or content from the which that is displayed on your screen.
<style type="text/css" media="screen">
body{background-color:#0f0}
</style>
<style type="text/css" media="print">
body{background-color:#f00}
</style>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron