Share The Solutions For Tech Problems

Wednesday, September 16, 2009 by Aslam - The Alexendra
Hi All,
Here i am going to describe how to exclude some part of your web page from print / print preview. Suppose you want to hide some part of the web page lets say 'div' to be print. Use this syntax.


---------------------------------------------------------------------------
<style media="print">
.hide{
display:none;
}
</style>

<div class="hide">
some contents to be hidden
</div>

----------------------------------------------------------------------------


The media = "print" will apply for print version of the page only....On your normal page(browser) you will be able to see contents but in print you will not...

Enjoy................

Posted in | 3 Comments »

3 comments:

Kapil Goutam said...

Awesome !!!

Rahul The Great Nagle said...

Good yar.

user engagement said...

Agree with this strategy as well where these vendors are building upon a core strength to branch-out into other closely related areas of business process and workflow.

Post a Comment