How to proportionally scale images that have dimension attributes – demo page

This is a demo document related to the article How to proportionally scale images with dimension attributes. Please see the article for context and information.

Image without dimension attributes

I am a circle and always look like one

Image with dimension attributes in HTML and max-width in CSS

I am a circle but look like an oval in narrow viewports

Image with dimension attributes in HTML and max-width and height:auto in CSS

I am a circle and always look like one

Lab Index | 456 Berea Street Home | Copyright © 2003-2014 Roger Johansson