PDA

View Full Version : Print CSS


Daryl
03-06-2009, 09:52 AM
I have noticed that when I create a site using SA Pro that a print CSS file is produced.

I would like to have a "Print This" button that uses the print CSS, how do I do this as the CSS file location of the page is controlled by the template.

Do I need a Print template?

Ray Borduin
03-06-2009, 10:05 AM
Print style sheets should be automatically used by the browser when you print. So you should just be able to print the page and it should use the print css automatically instead of what is displayed.

Daryl
03-06-2009, 10:12 AM
Now thats a bit clever!

Is there a way that I can get the print option to not print the menu and footer?

Ray Borduin
03-06-2009, 10:17 AM
add the style:

display:none;

to the print css for the header and footer.

Daryl
03-06-2009, 10:29 AM
Ray

Thats great, thanks - worked a treat!!! :):D