[pmwiki-users] Anchor links and CSS

Sandy sandy at onebit.ca
Sun Jan 20 11:41:43 CST 2008


Patrick R. Michaud wrote:
> On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:

>> Is there a way I can give the anchors a class and hide them? Or do I 
>> have to set the CSS for each of A.urllink, A.wikilink and A.selflink?
> 
> Yes, you can give anchors a class... try:
> 
>   Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e',
>     "Keep(TrackAnchors('$1') ? '' : \"<a name='$1' id='$1' class='anchor'></a>\", 'L')");
> 
> Then you can do something like:
> 
>     A.anchor:hover { border:none; }
> 
> Pm

Works great!

Thanks!

Sandy




More information about the pmwiki-users mailing list