For some reason, the following code functions perfectly with a transitional doctype, but when using the strict doctype, a small bottom border appears. The reason behind this issue is quite puzzling.
<div class="image"><img width="100" height="100" src="aaa.jpg" title="aaa" alt="aaa" /></div>
div.image {
-moz-box-shadow: 0 0 5px #939393;
-ms-box-shadow: 0 0 5px #939393;
-o-box-shadow: 0 0 5px #939393;
-webkit-box-shadow: 0 0 5px #939393;
box-shadow: 0 0 5px #939393;
padding: 2px;
display: inline-block;
}
Does anyone have any advice or suggestions on how to resolve this issue?
Edit1: Ideally, the image class should not include height and width information so it can adjust to the size of the image itself.