Div Higher Than the Image it Contains

I came across this simple problem when placing a sole image inside a div: the div always ended up being a few pixels higher than the image. Notice the few blank pixels below the image. After some searching, the solution was applied using CSS:

Read More

CSS Incompatibilities

We all know that different browsers display our CSS differently. What are the major differences? Here is what I found from my own experience (often the hard way): IE doesn’t support table, table-cell, etc. for the display property;  IE includes the padding in its width (width:50px & padding:3px will total 50px in IE and 56px…

Read More