Jump to content

I don't want to print that button


george

Recommended Posts

Yes. You can do it with CSS by using a second style sheet strictly for printing. For whatever you want to hide, just change the selectors properties to add display:none.You would then save the CSS as a different file name (e.g. mycss-print.css)You would then add this bit of code to your html pages between the <head> </head> tags:

<link rel="stylesheet" type="text/css" href="myss-print.css" media="print">

If you look at the code, it specifies media="print". The browser will use this style sheet for printing purposes only.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...