I have used a block for adding an option to print the page.The content of the block is
<a onclick='window.print();' style='cursor:pointer'>Print this page</a>
It works fine but I need to customize the content to be printed.How can this be done ?
You can customize what gets printed and how printed content looks like using media specific CSS:
<style type="text/css" media="print">
h1 { text-align: center }
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With