[pmwiki-users] Lack of ability to use % in CSS directives a real pain

CSGA_KPX dm.mikufans at gmail.com
Sat Jun 11 21:25:24 CDT 2011


'Pct' is replaced by % in markup translation.

in scripts/wikistyles.php

> SDVA($WikiStyleRepl,array(
>   '/^%(.*)%$/' => '$1',
>   '/\\bbgcolor([:=])/' => 'background-color$1',
>   '/\\b(\d+)pct\\b/' => '$1%',
>   ));
>

I use this code on pmwiki.org

> %block width=50pct % xx %%
>
and it produces

> <p style="width: 50%;"> xx
> </p>
>

Hope this helps.

2011/6/12 Tamara Temple <tamouse.lists at gmail.com>:
> In http://www.pmwiki.org/wiki/PmWiki/WikiStyles , one of the Known Issues
> is:
>
> "Percents in style definitions (like: %block width=50% %) require the use
of
> "pct" instead of "%"."
>
> This is a REAL pain, because "pct" is not valid (nor necessarily
recognized)
> CSS unit. Thus my desire to have 3 divs side-by-side each taking up 1/3 of
> the space is not possible without rewiring the skin template, thus making
it
> not portable to other skins. Is there ANY chance this can be fixed?
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110612/504230a4/attachment.html>


More information about the pmwiki-users mailing list