[pmwiki-users] Small icons for links (and how to vertical align small images)
Patrick R. Michaud
pmichaud at pobox.com
Wed May 24 14:00:23 CDT 2006
On Wed, May 24, 2006 at 01:54:35PM -0400, Sandy wrote:
> Joachim Durchholz wrote:
> > Thomas Kindler schrieb:
> >>Is there a recipe for adding small icons next to each link?
> >
> > CSS can go a long way for this. I don't remember the exact details, but
> > there was a pseudo-something for making it insert arbitrary HTML before
> > (or after) specific links.
>
> The pseudo-elements
> :before and :after
>
> They're not used very often and I suspect not well supported.
In particular, our good friend Internet Explorer doesn't support
them.
However, the "easy" way to change link formatting is to change
the value of $UrlLinkFmt:
$UrlLinkFmt =
"<a class='urllink' href='\$LinkUrl'
rel='nofollow'>\$LinkText</a><img src='external-link.gif' alt='' />";
Pm
More information about the pmwiki-users
mailing list