Extra Space under Image Links Fix

Have you ever had the problem of having a little extra space under images on your website? This has been driving me crazy since I started the FancyFlickr plugin and noticed a little extra space under all of the images on my site.

The problem is that by default the bottom of images are lined up with the baseline of the text — which means the bottom of most letters, but there is still that small space for the bottoms of letters like p and q.

By default vertical-align is set to baseline. All you have to do to fix the problem is set

a img { vertical-align: bottom; }

Viola! Problem solved.

Related posts:

  1. Blogroll Links Favicons
  2. New ‘REtro’ Theme
  3. New WilmotHighSchool.com
  4. Mighty Mouse Scrolling Fix
  5. Sidebar Widgets Plugin IIS Fix

2 Comments So Far

  1. You are a god.

  2. [...] I did, he brought 8 bartenders with him. I'm too old for this nonsense. #koisucks #@pathartl http://joshbetz.com/2010/01/extra-space-under-image-links-fix/comment-page-1/#comment-2241 hahaha #i can't believe i just figured out that middle click opens a link in a new tab… [...]

Leave a Reply