I have a Gall-Peters projection on my website. I want to give the image 100% of available width while keeping the height correct so that countries do not get elongated. What is the right CSS to keep the aspect ratio?
Asked
Active
Viewed 490 times
2 Answers
0
Simply width: 100%
. The height of an image should automatically be set to keep the original aspect ratio.

James Coyle
- 9,922
- 1
- 40
- 48