Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Keep ratio using Grid

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #300078
    Pentarou
    Participant

    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!

    #300084
    Pentarou
    Participant

    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?

    #300085
    vulkanus
    Participant

    I donĀ“t know if this will help you: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.