[pmwiki-users] change rfloat/lfloat rules

Patrick R. Michaud pmichaud at pobox.com
Sun Oct 1 14:17:05 CDT 2006


On Sat, Sep 30, 2006 at 10:16:05PM -0400, Henrik Bechmann wrote:
> I want to change rfloat/lfloat rules from
> 
>     .lfloat { float:left; margin-right:.5em; }
>     .rfloat { float:right; margin-left:.5em; }
> 
> to
> 
>     .lfloat { float:left; margin-right:5px; }
>     .rfloat { float:right; margin-left:5px; }
> 
> What's the most concise/legitimate way to do this?

I'd do it in pub/css/local.css .

It can also be done from config.php with:

    $HTMLStylesFmt[] = '
      .lfloat { float:left; margin-right:5px; }
      .rfloat { float:right; margin-left:5px; } ';

> (the .5em is giving IE6 fits in certain contexts -- poor old thing!)

Ooh, could you give an example?  Is it serious enough to warrant
changing the core?

Pm




More information about the pmwiki-users mailing list