Hi guys, I tried a few things and I just can't get my top and bottom padding to be the same, the bottom is always thicker than it should be.
div.box {
background-color: #800000;
padding: 24px 0;
}
<div class="box">
<img src="..." width="128" height="128" ...>
</div>
The only way I can get it right is if I set the box height explicitly to 128px but if I have more than one image side by side (which I do) it will mess up the flow when I shrink the window.
In my case the bottom is 4px bigger so I can set the div.box padding-bottom to 20px but I don't really like that method because I'll bet it's not 4px in everyone's browser.
I tried putting the HTML all on one line, it didn't do anything different. I tested in Firefox and IE. I coded for HTML5.
Thanks.