Page 2 of 2

Re: Printer Friendly on-the-fly??

Posted: Wed Jan 12, 2011 12:52 pm
by simonmlewis
Oh now there is an idea that I hadn't thought of.
Can you do the same with DIVs too?
So if you have classes assigned to DIVs for display and layout, you could surround an entire DIV section with another and class that up. And disabled on the CSS.

How would u disabled an entire div from even showing, via CSS?

Re: Printer Friendly on-the-fly??

Posted: Wed Jan 12, 2011 1:09 pm
by s992
The same way you would do it with images. My recommendation would be to create your entire print stylesheet WITHOUT the @media print query attached to it so that you can preview it in your browser as you make modifications. After you're done, wrap it all in @media print and see how it looks when you print it.

Re: Printer Friendly on-the-fly??

Posted: Wed Jan 12, 2011 1:35 pm
by VladSun
simonmlewis wrote:Oh now there is an idea that I hadn't thought of.
Can you do the same with DIVs too?
So if you have classes assigned to DIVs for display and layout, you could surround an entire DIV section with another and class that up. And disabled on the CSS.

How would u disabled an entire div from even showing, via CSS?
Of course you can do it :) You can do a lot more... just read the CSS manual

Re: Printer Friendly on-the-fly??

Posted: Wed Jan 12, 2011 1:40 pm
by simonmlewis
s992 has cracked it.
Yes I knew you could, just forgot the simple way to do it.
Have worked it out for screen, will test it tomorrow in print.