[pmwiki-users] How to suppress text in print view

Simon nzskiwi at gmail.com
Sat Jun 7 21:31:50 CDT 2008


In
\public_html\pmwiki\pub\css\local.css
add the following

@media print {
/* style sheet for print */
  .noprint {
    display : none;
  }
}

Then use a wiki style, eg

%noprint%

>>noprint<<
>><<

(:div class="noprint" :)
(:divend:)

to control what gets printed.

Simon

PS Patrick, could we add "noprint" to the core.




2008/6/5 kirpi at kirpi.it <kirpi at kirpi.it>:

> > My page has some content that is only relevant when viewed on the
> > screen. In print view, it's just clutter. Is there an easy way to
> > suppress it?
>
> This part of the page will print as usual
> (:if action browse:)
> This text will not be seen\\
> nor printed when in print view
> (:ifend:)
> This will also show as usual
>
>
> Luigi
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 

http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080608/748fc313/attachment.html 


More information about the pmwiki-users mailing list