Forums

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

Home Forums Design Making a div the size of the Viewport

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #250626
    Burlingame
    Participant

    I want to create a div that houses my home screen content everything above the fold making it 100% width and height with centered content within the div, and then include more content below the fold making it 100% width but varying heights. I was attempting to use flex box but cannot seem to get the first child to expand to fill the page fully.

    https://codepen.io/burlingame/pen/pRdVGx

    #250627
    Atelierbram
    Participant

    Have you tried viewport-units?

    .child1 {
      min-height: 100vh;
    }
    

    http://codepen.io/atelierbram/pen/dNZKYN

    #250682
    Burlingame
    Participant

    Thank you that will work for what I need.

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