I\'m adding a box shadow to an element containing an img and it\'s creating an arbitrary white border on the bottom of the element. No border is being applied via CSS (and I
Either :
display:block;
to your img
. line-height
of 0px
on your div
.An image is an inline element, so there is space for text, leaving that line.
Demo
And one more way to achieve this is to add virtical-align: top;
to an img
.
try display block for image.
.badge_image img {
display: block;
}