Home › Forums › JavaScript › Setting a Div height to the window viewport size › Reply To: Setting a Div height to the window viewport size
September 13, 2015 at 3:04 pm
#208129
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);
}