CSS Double padding IE7 Fix

Nothing is more annoying than finishing a web design, having it dispay just the way you like it in your standards compliant browser (*cough* get Firefox) only to remember to check it in IE and find it a garbled mess. Today I came across a rather annoying CSS bug in IE7. IE7 doubles the top padding on my link bar.

CSS Code
#quicklinks {
clear: left;
color: #fff;
font-size: 0.8em;
padding: 16px 0 0 30px;
}

Here’s what it looks like:
IE7 Double padding bug

And the fix…

Just add display: inline-block in your div. That’s it… I know, it’s ridiculous.

*UPDATE* If you want a more detailed explanation of the issue, go to: Position is Everything