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

Hans design at softflow.co.uk
Sat Dec 24 01:57:55 CST 2005


Friday, December 23, 2005, 11:13:17 PM, Susan wrote:
> I put the following in local/config.php

> $WikiStyle['teaser']['color'] = '#005000';
> $WikiStyle['teaser']['text-style'] = 'italic';
> $WikiStyle['teaser']['text-align'] = 'center';

> The color and italic work fine, but it isn't centered. Any ideas?

try and add:
$WikiStyle['teaser']['apply']='block';

> 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. Or in a skin's css file.
Create as a class:
.teaser { color:#005000;
        font-style:italic;
        text-align:center;  }

If you use this inline with markup %teaser%
it will not center.
If you use it with markup >>teaser<<
it will center, as it is now a block (division).
But you need to close the div with >><<

You can also specify several classes:
Markup %teaser center% will center the text.




Best, 
~Hans                           






More information about the pmwiki-users mailing list