I have the following HTML:
<div style="display: table-cell; width: 500px;">
<img src="http://www.planwallpaper.com/static/images/b807c2282ab0a491bd5c5c1051c6d312_k4PiHxO.jpg" style="max-width: 90%">
</div>
I want the image to be 90% of the container div, and it works in chrome. But in firefox the max-width property doesnt work here. Instead I have to use something like 90px
to make it work.
How do I solve this?