Technical Tips and Solutions

Back to Tech Tips

12/04/2005 - Internet Explorer puts 3px space after divs with an img tag

One of Internet Explorer's quirks is that it puts 3px of space under divs that contain an img tag. This can be infuriating to design for if you are unaware of it.

The solution I found was to use a -3px bottom margin to correct the space. Seems to work fine with Firefox too.

Back to Tech Tips