CSS class for not displaying tag groups in print pages


/ Published in: CSS
Save to your folder(s)

From this article, Martin "mpot" Pot mention:

" The above CSS definition is defining a style called noprint, and will only be applied to printed content. Setting the display property to none means any content using this CSS style will not be displayed when printed, but will be displayed for all other media types. "


Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. @media print {
  3. .noprint { display: none; }
  4. }
  5. </style>

URL: http://martybugs.net/articles/print.cgi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.