Forum Replies Created

Viewing 1 replies (of 1 total)
  • To make the images flexible, simply add max-width:100% and height:auto. Image max-width:100% and height:auto works in IE7, but not in IE8 (yes, another weird IE bug). To fix this, you need to add width:auto\9 for IE8.

    img {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
    }
    And if you want to enforce a fixed max width of the image, just place it inside a container, for example:

    <div style=”max-width:500px;”>
    <img src=”…” />
    </div>

    No javascript required. Works in latest versions of Chrome, Firefox and IE (which is all I’ve tested).

    [Signature links removed by moderator per forum rules.]

Viewing 1 replies (of 1 total)