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

#202652
Paulie_D
Member

Actually, I wouldn’t recommend a width of 100vw as it doesn’t account for scrollbars

div {
width = 100%;
height = 100vw;
}

is preferred I believe.