Gaps Under Images in IE6

{ June 24th, 2007 }

In IE6 and below, images within a div will have a gap or space below them. This is caused by the fact that images are not block elements; they’re inline. The pixels at the bottom are the space below the baseline where text descenders would go (tails on letters like g, j, p, q and y).

The Fix:
Using CSS, set display:block; on the img.

This is not a problem in IE7.

It is good to share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Categories: CSS ~ Tags: , , , ~ Trackback

Leave a Reply

.htaccess accessibility Apple articles browser bugs chrome CSS domain names ecommerce email ems eps fonts google HTML http https IE Internet Explorer interview Mac menu PayPal plugins redirects Safari SEO spam SSL survey tools web standards website design Windows WordPress