The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Why Do Divs Refuse to Match Image Height?
[http://codepen.io/anon/pen/elvmA](http://codepen.io/anon/pen/elvmA “”)
I’ve never quite understood why there’s a margin added to the bottom of the div in scenarios like that above. What is the least code-intensive way to fix this issue? I’ve actually found solutions via jQuery which is complete overkill.
Add `display:block`
http://codepen.io/Paulie-D/pen/IchFd