[pmwiki-users] How to suppress text in print view
Randy Brown
randy at brownragfilms.com
Thu Jun 5 09:56:35 CDT 2008
Hans,
I like your approach, since I don't have to worry about conditional
logic. Unfortunately, this didn't work for me. Does local.css need to
contain anything other than the three lines you've given?
Randy
On Jun 5, 2008, at 4:52 AM, Hans wrote:
>
> you can define a class 'noprint' as css style in pub/css/local.css
>
> @media print {
> .noprint { display: none; }
> }
>
> Note the class is enclosed in a @media print { } container, which
> will only be applied for when the page gets printed (or previewed for
> print).
>
> Then use as you suggested as class in a div:
> or as wiki style:
>
> %noprint%this won't print%%
More information about the pmwiki-users
mailing list