I use padding + background-image to place the icon next to the link.
There are many examples of this approach. Here is one from here :
<a class="external" href="http:
But most browsers do not print a background image, which is annoying.
What is the standard for placing an icon next to links, which is semantically correct and works in all cases?
EDIT
What about CSS :before and :after ? Is this a recommended practice?
a.test:after { padding-right: 5px; content: url(../pix/logo_ppk.gif); }
css
ewernli
source share