/ Published in: CSS
Show only non-printable area on web page but print only the printable areas
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<html> <head> <style type="text/css"> #printable { display: none; } @media print { #non-printable { display: none; } #printable { display: block; } } </style> </head> <body> <div id="non-printable"> non printable area </div> <div id="printable"> printable area </div> </body> </html>