I have a problem with display of img in the table:
<table>
<tr>
<td>
<div>
<img src="https://www.google.ru/images/srpr/logo4w.png"/>
<img src="http://pictar.ru/data/media/24/nature__463_.jpg"/>
</div>
</td>
</tr>
</table>
with css:
div {
height: 100%;
width: 100%;
border:2px solid red;
}
div img {
max-width: 100%;
max-height: 100%;
}
JS Fiddle example.
In Chrome both images scaling proportionally to div-wrapper, but in Firefox and IE9 images do not scale.
How can I get Chrome behaviour everywhere?
ANSWER: The only solution is to use javascript. My cross-browser solution is: http://jsfiddle.net/TAE3w/21/