0

Hi; how can a predefined text be printed in a html page? it means, when the "print this page" button/link is clicked all the elements in the window is printed even the button.
now is there any way to print just the texts & etc. without printing the buttons and unuseful elemets?
appreciating your replies.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by farshidk
0

What you will need is a separate stylesheet for your printing layout.
To insert it, put this into your head:

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

then in the stylesheet simply put: display:none; for each of the elements that you don't want to display.
Done. :)

0

What you will need is a separate stylesheet for your printing layout.
To insert it, put this into your head:

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

then in the stylesheet simply put: display:none; for each of the elements that you don't want to display.
Done. :)

Hi...

thank you, that's exactly what i was looking for!
regards

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.