[pmwiki-users] Image frames and the "frame", lfloat, and rfloat classes

Patrick R. Michaud pmichaud at pobox.com
Fri Aug 26 07:11:58 CDT 2005


On Fri, Aug 26, 2005 at 09:43:41PM +1200, Simon wrote:
> Thanks. Yes I have a local CSS file.
> It looks a bit like this
> 
> @import url("/pmwiki/pub/skins/pmwiki/pmwiki.css");
> .lfloat {
>    clear: left;
> }
> .rfloat {
>    clear: right;
> }
> .frame {
>    background-color: #999999;
> }
> 
> unfortunately any local CSS file will be overwritten by CSS embedded in 
> the actual page, for example
> (from 2beta54)
> 
>    .frame
>      { border:1px solid #cccccc; padding:4px; background-color:#f9f9f9; }
>    .lfloat { float:left; margin-right:0.5em; }
>    .rfloat { float:right; margin-left:0.5em; }
> 
> 
> this makes it impossible to change any off the attributes that are 
> specified above,

False -- it's not impossible.  :-)

1.  If you include your local CSS file *after* the <!--HeaderText-->
directive in the template, then its settings will override the attributes
specified by PmWiki.

2.  You can tell PmWiki not to generate the CSS for wikistyles by setting
    (in local/config.php):

        $HTMLStylesFmt['wikistyles'] = '';

Pm





More information about the pmwiki-users mailing list