Category: Aspect Ratio
-
Maintaining A 16:9 or 1:1 Responsive Aspect-Ratio Of An Image Using CSS
One of the greatest challenges developers face is to maintain an aspect ratio of multiple images with unknown dimensions. In this blog, we will learn just that. Let’s take an example of these two images with different dimensions. The problem is that we cannot give it a fixed height because the width will change in…