I have a flex box with 2 elements in it side by side normally elements in flexbox automatically take all the space...
but not here ... I tried to set the height manually to height:100%... nothing woks
where is my mistake? (the menu element is supposed to take all the height available, for the example I artificially made a fix height for the blue element ... but in my code it is supposed to be variable depending of the content so setting menu in pixels is not an option)
html :
<html>
<head>
<link rel="stylesheet" type="text/css" href="./test2.css">
</head>
<body>
<div class="framehome">
<div class="myaccountwrapper">
<div class="myaccountleft">
Menu
</div>
<div class="myaccountright">
<div id="windowmyaccount" class="submenu" id="boxaccount">
Change my Handle
</div>
<div id="windowhandle" class="submenu" id="boxaccount">
Change my Handle
</div>
</div>
</div>
</div>
</body>
CSS :
.myaccountwrapper{
display:flex;
flex-direction:row;
align-items:center;
color:lightgrey;
background-color:green;
}
.myaccountleft{
display: flex;
flex-direction: column;
width:250px;
height:100%;
background-color:red;
}
.myaccountright{
flex-grow: 1;
background-color:blue;
height:300px;
}