coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: flapane on June 04, 2012, 04:25:50 PM

Title: [tip]Delete non-useful cpg divs while printing
Post by: flapane on June 04, 2012, 04:25:50 PM
Just a little tip I applied in my website and I want to share:
If an user wants to print your cpg gallery home or any other cpg page, you'd better provide him a clean version of it for printing purposes.
You can do this by applying this code in your stilesheet:
/*non mostrare quando si stampa il documento*/
@media print {
#cpgChooseFlags { display:none }
}


In this example the language selector won't appear on the printed version of the page.
Substitute the code in this example with any other <div> you want to disappear while printing.
Title: Re: [tip]Delete non-useful cpg divs while printing
Post by: flapane on June 04, 2012, 04:29:07 PM
See the difference between original and ready-to-be-printed version using the @media print { } css feature