[pmwiki-users] Small icons for links (and how to vertical align small images)

H. Fox haganfox at users.sourceforge.net
Fri Apr 28 23:22:08 CDT 2006


On 4/28/06, Thomas Kindler <thomas.kindler at gmx.de> wrote:
> Hi!
>
> Is there a recipe for adding small icons next to each link? DokuWiki
> does this -- a small globe for external links, a letter for mail
> adresses, etc..
>
> I'm just trying to do this by hand:
>
> [[Site/AllRecentChanges?action=rss|Attach:feed-icon.png]]
> [[Site/AllRecentChanges|Recent Changes]]
>
> But how can i get the icon to be vertically centered with the text?!
>
> feed-icon.png is 16x16 pixels and the bottom of the image is aligned
> with the baseline of the text, which looks quite ugly. I couldn't find
> an option to do a "vertical-align: center" or similar..

Maybe superscript or subscript?

> many greetings from Bochum, Germany,

I know it can be done because the Monobook skin produces links with icons

http://www.pmwiki.org/wiki/Cookbook/MonobookSkin

Hagan




More information about the pmwiki-users mailing list