CSS padding displays in FF and Chrome, but not in IE 8? [migrated]
- by bullitt five
I'm updating the CSS on a page design, trying to put borders around my images, with 7px of padding between the image and the border. It seems to be working fine in Firefox and Chrome, but IE displays the border directly against the image, with no padding. Any suggestions?
CSS code:
img.right {
float: right;
margin: 0px;
border: 1px solid #999;
padding: 7px;
margin-left: 10px;
margin-bottom: 5px;
}
HTML:
<img src="images/homepage_challengecoin.jpg" class="right">