Nice writeup by Marc Hinse. It’s similar to Uncle Dave’s Ol’ Padded Box, except the percentage padding-bottom is moved to a pseudo element where it doesn’t need to be adjusted when the width value changes.
Easier Aspect Ratio Elements
DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit!