DEV Community

Giorgos Sarigiannidis
Giorgos Sarigiannidis

Posted on

Maintain ratio on elements with unknown heights and contents

Maintain the aspect ratio on HTML elements with unknown heights and contents using SCSS @mixins and CSS Custom Properties.

Discussion (0)