Forums

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

Home Forums CSS Create flexbox menu that takes up rest of vertical space of browser window Reply To: Create flexbox menu that takes up rest of vertical space of browser window

#235770
Valentin Born
Participant

Damn it – in Iceweasel/Firefox they do! And they should:
display: flex;
“The element behaves like a block element and lays out its content according to the flexbox model.”
display – CSS | MDN
So, setting the .nav class’s height to 100% should work (the nav element does grow to the bottom).
But in Chromium/Chrome, indeed they don’t! And here I thought flexbox was safe in modern browsers …