[pmwiki-users] Request: Transparent PNGs in PmWiki

Allister Jenks arj at zkarj.co.nz
Fri Mar 17 02:45:41 CST 2006

OK, I got it to work.  I hadn't realised styled DIVs were so
straightforward.  Here's what works:

(:div style='[=width:300px; height:200px; padding:0px; filter:progid:
http://www.yoursite.com/uploads/Main/trans.png", sizingMethod="image")=]':)

The style='[= ... =]' structure is needed otherwise PmWiki trips over the
colons in the filter string.  Good thing I learnt that trick earlier today
with my linefeed problem!  :-)

The problem is that in browsers other than IE, this displays as an empty
block.  Of course in non-IE browsers, you just use the standard Attach: and
all is well.

So the question now is, how do condition on browser type?  I assume some
sort of variable will need to be created and then enclose each method in
mutually exclusive (:if:) tags using this variable?

On 3/17/06, Allister Jenks <arj at zkarj.co.nz> wrote:
> Cheers.  That looks like it is using similar stuff.  I'll have a play.  It
> still means ugly editing, but maybe when I figure out how to get it to work,
> someone can assist with converting.
> On 3/17/06, Chris Cox <ccox at airmail.net> wrote:
> >
> > Allister Jenks wrote:
> > Has anybody managed to implement the transparent PNG hack described here
> (
> > http://www.willhowat.com/knowledge/transparent_png.aspx ) within
> PmWiki?  I'm
> > building a site on which I have a textured background and wish to use
> some
> > irregularly shaped images.
> Have you looked at:
> http://pmwiki.org/wiki/Test/Opacity
> Maybe that will help (??).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060317/1d780000/attachment.html 

More information about the pmwiki-users mailing list