[pmwiki-users] apply class to link

Henrik henrik.bechmann at sympatico.ca
Fri Apr 13 09:10:05 CDT 2007


Patrick,
> Yes.  I think this can be added with (untested):
>
>     $WikiStyleApply['link'] = 'a';
>   
Almost.

Given

a.native:hover {
  background-color:transparent;
}

(suitable where a link surrounds an image for example)

and

$WikiStyleApply['link'] = 'a';

in config.sys,

%apply=link id="testlink" native font-size:2em%[[FrontPage|Test Link]]

yields

<a class='native' 
 style='font-size: 2em;' 
 id='testlink' 
 class='wikilink' 
 href='(somelink)'>Test Link</a>

(note the dual "class" attributes).

> Out of curiosity, why is "%wikistyle%[[SomeLink]]" insufficient?  
>
>   

Style rules like background-color don't inherit.

Is this worth a PITS entry? Is there anything else that could deal with 
the dual class attributes?

Thanks,

- Henrik

-- 

Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca




More information about the pmwiki-users mailing list