Monday, September 12, 2011

Print particular DIV inside HTML Page

by sandipransing 0 comments
Hiding Whole page content and displaying only particular div using css

<style media="print" type="text/css">
  @media print
  {
    body * { visibility: hidden; }
    #PrintDiv * { visibility: visible; }
    #PrintDiv { position: absolute; top: 40px; left: 30px; }
  }
</style>
Read More…

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter