[pmwiki-users] Anchor links and CSS

Patrick R. Michaud pmichaud at pobox.com
Sun Jan 20 11:33:08 CST 2008


On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:
> I had the brilliant idea of setting
> 
> A:hover
> {
> border:1px solid blue;
> padding: 0px 2px 0px 2px;
> }
> 
> Now when I move the mouse around, an empty box appears around [[#name]].
> 
> 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




More information about the pmwiki-users mailing list