Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [tip]Delete non-useful cpg divs while printing  (Read 2571 times)

0 Members and 1 Guest are viewing this topic.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
[tip]Delete non-useful cpg divs while printing
« 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:
Code: [Select]
/*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.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: [tip]Delete non-useful cpg divs while printing
« Reply #1 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
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.