To make all images on your website responsive, don't change your inline HTML from correct markup, as width:100%
doesn't work in all browsers and causes problems in Firefox. You want to place your images on your website how you normally should:
<img src="image.jpg" width="1200px" height="600px" />
And then add to your CSS that any image max-width is 100% with height set to auto:
img {
max-width: 100%;
height: auto;
}
That way your code works in all browsers. It will also work with custom CMS clients (i.e. Cushy CMS) that require images to have the actual image size coded into the inline HTML, and it is actually easier this way when all you need to do to make images responsive is simply state in your CSS file that the max-width is 100% with height set to auto. Don't forget height: auto
or your images will not scale properly.