Re: Print preview in php [message #174253 is a reply to message #174245] |
Sat, 28 May 2011 14:14   |
dougatmilmacdotcom
Messages: 24 Registered: May 2011
Karma:
|
Junior Member |
|
|
In article <irqpf4$db0$1(at)dont-email(dot)me>, TK <tknospa(at)wejuggle2(dot)com> wrote:
> On 5/28/2011 7:04 AM, Co wrote:
>>
>> I found an example doing that but I still printed the whole page.
>
> Make the items you do not want to display have a class="nodisplay"
>
> In the print css sheet define .nodisplay {display:none;}
>
A much better idea IMHO is to make the items you do not want to *print* have a
class="noprint", and in the print css sheet define .noprint {display:none;} --
properly descriptive names make it much easier to understand what's going on.
|
|
|