I defined a bottom border (2px) on my anchor links.
The problem: this bottom border is also applied on my image when these are links.
How to avoid this bottom border on images?
Html:
<a href="#">hello</a>
<a href="#">
<img src="https://cdn0.iconfinder.com/data/icons/cosmo-medicine/40/dog-128.png">
</a>
Css:
a {
text-decoration: none;
color: #3e3e3e;
border-bottom: solid 2px #60bbd2;
}
a img {
border: 0;
}
a:hover{
border-bottom: 0px none;
color: #60bbd2;
}
Jsfiddle: http://jsfiddle.net/8L63n7nu/1/
Thanks.