Mario "Kuroir" Ricalde

Scroll to Info & Navigation

Container and Image

Something as simple as a a tag wrapping an image can be some times frustrating when you don’t know how to work around them.

Today making the a fit perfectly over the child ( a img tag) made me think for a minute there. Leaving this note to myself to avoid having to think about it again:

Annoying spacing huh?

Anyway to fix it just add vertical-align:middle to the child and it will work perfectly under every decent browser (including IE7+).

Recent comments

Blog comments powered by Disqus