After doing it this way for a very long time I just wanted to make sure that this is the correct way. When I have a text link and then want to include an icon alongside I use this code:
<div class="icon-link"><a href="#">My link</a></div>
and then for the CSS this:
.icon-link {
padding-left: 20px;
}
.icon-link {
background: url(icon.png) no-repeat;
}
Any thoughts?