BFE.dev
Front-End Interview Questions83. How to create a box with fixed Aspect Ratio in CSS?

83. How to create a box with fixed Aspect Ratio in CSS?

CSS
Share

It is very common in responsive web apps to maintain fixed aspect ratio of an element to adapt to different window sizes.

Actually there is more than 1 solution to this, what could you think of?

prevnext
Request SolutionAIPosts(2)