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?
Printer Friendly on-the-fly??
Moderator: General Moderators
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: Printer Friendly on-the-fly??
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
Re: Printer Friendly on-the-fly??
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??
Of course you can do itsimonmlewis 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?
There are 10 types of people in this world, those who understand binary and those who don't
-
simonmlewis
- DevNet Master
- Posts: 4435
- Joined: Wed Oct 08, 2008 3:39 pm
- Location: United Kingdom
- Contact:
Re: Printer Friendly on-the-fly??
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.
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.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.