The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Keep ratio using Grid
Hello, I got the perfect grid, but I’m unable to figure out a solution to maintain the ratio while scaling the grid.
Can someone please help me find a way to do so?
Codepen > https://codepen.io/Pentarou/pen/NWPxBbX
Thank you kindly in advance!
I’ve managed to do this by adding padding of 50% to the bottom of each column, is there a way to make the columns stack below each other on mobile devices?
I don´t know if this will help you: https://css-tricks.com/snippets/css/a-guide-to-flexbox/