[pmwiki-users] local redefinition of a CSS class

Petko Yotov 5ko at free.fr
Fri Aug 3 03:38:57 CDT 2007


On Friday 03 August 2007, Christophe David wrote:
> Second try...
>
> I'am trying to get one specific hyperlink (class='wikilink') in a page
> to look different than the others, without writing a custom markup.
>
...
>
> On 02/08/07, Christophe David <pmwiki at christophedavid.org> wrote:
> > Could someone please give an example how to redefine the CSS
> > attributes for a class (like 'wikilink') locally ?
> >
> > Example: At a given place only, the link [[Main.HomePage|Home]]
> > (class='wikilink') should be rendered with text-decoration:none,
> > font-size:smaller and color:red .

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,
Petko




More information about the pmwiki-users mailing list