Normally, when I put a photo on a website, the photo stays the same aspect ratio on both widescreen and normal monitors.
But I have one web page where I need to resize the photos to all be the same width. I used the CSS width attribute, with an inch value.
When using the 4:3 monitor, the photos display normally.
When using the widescreen monitor on this page, the aspect ratio is wrongly changed so the image is shorter than it should be.
Is some special coding needed to preserve the aspect ratio?