I need to have a sidemenu that scales depending on the browser size. But also i need a header and footer, and the also a content container next to the sidemenu. So lets say that the sidemenu is 1/4 of the width and the content container is 3/4 of the width, but the height of both the sidemenu and the content container is always 100% of the browser size or more, depending on the content inside the content container and the sidemenu.
I would think this would be simple, just have the flext-dir. to col. and "flex: 1" on the childeren. (and a little more code, its in the fiddle link under)
But as soon as I wrap the sidemenu inside a new div, so that I can make the content container go next to the sidemenu and not under. The vertical fill from flexbox, fails.
https://jsfiddle.net/frrvdq2n/2/
So do anyone have som suggestions on how to solve this, or maybe other tips to create this idea. Thanks ahead :)
IMG. of how om thinking the sizing should be on most browser sizes.
Here is also the code, just incase:
HTML
<!--<div class="container"> uncomment to see colapse-->
<div class="wrapper">
<div class="row3">Option One</div>
<div class="row3">Option Two</div>
<div class="row3">Option Three</div>
</div>
<!--</div>uncomment to see colapse-->
CSS
.wrapper, html, body {
height:100%;
margin:0;
}
.wrapper {
display: flex;
flex-direction: column;
}
.row3 {
background-color: green;
flex:2;
display: flex;
}