Forums

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

Home Forums JavaScript Setting a Div height to the window viewport size Reply To: Setting a Div height to the window viewport size

#208129
nicooga
Participant

This works:

.full-viewport-heigth {
  heigth: 100vh;
}

I needed to substract the height of the top bar, so I used calc:

.main-carousel {
  heigth: calc(100vh - 64px);
}