BFE.dev
buy us
a coffee
Codingproblems
Reactproblems
JavaScriptquizzes
Reactquizzes
TypeScriptpuzzles
CSSproblems
Interviewquestions
SystemDesign
Discussanything
buy us
a coffee

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

relax!