[pmwiki-users] how to justify align text?

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 11 16:28:29 CDT 2006


On Wed, Oct 11, 2006 at 05:20:16PM -0400, BrianB wrote:
>    How can I justify align a page's text?  %text-align="justify"% doesnt work
>    for me.

Not all browsers support text-align:justify.

However, for those that do, it only works when applied to some sort
of block.  So, you could do:

    %define=justify block text-align=justify%

which makes a %justify% style for any block:

    %justify% This line is full justified (or, it would be
    if it had enough text).

If you just want to justify all text on a page, then try putting
a "text-align:justify" provision into pub/css/local.css.  For
example, to justify all paragraphs, you can do:

    p { text-align:justify; }

Pm




More information about the pmwiki-users mailing list