[pmwiki-users] local redefinition of a CSS class

Petko Yotov 5ko at free.fr
Fri Aug 3 04:10:50 CDT 2007


On Friday 03 August 2007, Christophe David wrote:
> > 1. In pub/css.local.css:
> >    .redsmall, .redsmall a, .redsmall a.wikilink
> >    { text-decoration:none; font-size:smaller; color:red; }
> > 2. In the wiki page:
> >    %redsmall%[[Main/HomePage]]%%
>
> Thanks a lot.
>
> Is there a way to define this in a wikipage too ?
> I tried with %define, but could not get it to work.

Except for the text-decoration bit, this seems to work:

  %define=greenbig green font-size=bigger bgcolor=#eeffee%
  %greenbig%[[Main.HomePage]]%%

If the link is in the sidebar, it will not be underlined anyway.

Petko




More information about the pmwiki-users mailing list