E Online Support - Free Software Download
Remove the extra white space underneath an image using CSSRemove the extra white space underneath an image using CSS
License/Price:
Free / Free
Last Updated:
19 June, 2014
Category:
Scripts / Source Code / HTML and CSS

If you try to put an image inside a

element, you will see an extra white space (around 3px) at the bottom of image. It happens because image is an inline-level element so browser adds some whitespace under the baseline to adjust other inline elements. The easiest way to get rid of it is to change the display property of the image from inline to block.

 

Post Your Comments
Facebook   Linkedin   Skype   Twitter