I cannot use JS, this should be archived by CSS only. Container (DIV) is auto width (flexible) "table-cell" element.
I'd want to scale image down only when it width is larger than container (user can resize window - that's the reason).
I've used code shown below but it work only on IE7.
max-width: 100%;
height: auto;
width: auto\9;
I've tried to find any working fix for IE9, but without success.
max-width: 100%;
to the img tag doesn't work? test it here resizing the window. It works for IE7, IE8, Chrome and Firefox, but I can test it in IE9 right now. Anyway, how is IE9 behaving? – Bistoury