Forums

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

Home Forums CSS Add new vh fitted rows based on column(vw) width?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #276696
    wcomp
    Participant

    I have this code where there is simply one column with three different rows fitted to the viewport. Each row will contain an image that is fit by height. I want to make it so that if the browser is resized horizontally, and the width of that column(viewport) falls below a certain point, additional rows are then inserted on the page THAT ALSO FIT the viewport. So it would snap from fitting three rows, to fitting four rows, then five and so on, depending on the width of the one column/viewport:

    https://codepen.io/Wcomp/pen/WgaXpb

    #276813
    smcghee
    Participant

    Use a media query to add more rows depending on the screen width.

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