[pmwiki-users] Custom Wiki Styles and text-align:center

Patrick R. Michaud pmichaud at pobox.com
Mon Dec 26 13:24:58 CST 2005


On Sat, Dec 24, 2005 at 07:57:55AM +0000, Hans wrote:
> Friday, December 23, 2005, 11:13:17 PM, Susan wrote:
> > Alternatively, is there a way I can call a style from the CSS page?
> Yes you can. Create your styles in pub/local/local.css, which gets
> loaded automatically. 

Actually, that's pub/css/local.css .

> Create as a class:
> .teaser { color:#005000;
>         font-style:italic;
>         text-align:center;  }
> 
> Markup %teaser center% will center the text.

So will %p teaser% or %block teaser%.  But it's also nice if the
%teaser% markup already knows to be applied to a block.

One can also do:

    $WikiStyle['teaser']['class'] = 'teaser';
    $WikiStyle['teaser']['apply'] = 'block';

Pm





More information about the pmwiki-users mailing list