george Posted February 12, 2008 Share Posted February 12, 2008 I want my enduser to print the page without printing any buttons on the page. Is there a way I can hide the buttons from the printer? ThanksGeorge Link to comment Share on other sites More sharing options...
newseed Posted February 12, 2008 Share Posted February 12, 2008 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 More sharing options...
george Posted February 13, 2008 Author Share Posted February 13, 2008 Great - thanks!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.