I am facing an issue with the following code:
<a href="#"><div class="iconFriends"></div></a>
<a href="#"><div class="iconFavorite"></div></a>
<a href="#"><div class="iconPM"></div></a>
<a href="#"><div class="iconShield"></div></a>
Each icon has a CSS class like this:
.iconFriends{
background: url(../images/icons/friends_16x16.png) no-repeat;
width: 16px;
height: 16px;
border: none;
}
However, when I use the code above, it creates an unwanted line break. But, when I replace the <div>
with a normal <img src="...">
, it displays correctly. How can I resolve this issue?