Srilatha Marru's Blog
Removing extra space around image in a table cell

Many a times, the image has space around it.

It’s to do with using a strict doctype, and the fact that the images are by default inline which display on top of the baseline. Quick fix for it is to apply declare the image as block.

Like img { display:block; }

Reference articles:

Article 1

Article 2



AUTHOR

profileWeb Developer working in advertising agency.

Recent tweets

The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.