I am trying to use Flexbox to create a simple two column webpage that occupies the full width and height. The left column is a fixed width of 200px
while the right column in takes up the remaining space.
So far I have:
:root {
overflow-x: hidden;
height: 100%;
}
body {
min-height: 100%
}
.flexbox {
height: 100%;
display: flex;
}
.left {
flex: 0 0 200px;
height: 100%
}
.right {
flex: 1
}
and:
<div class="flexbox">
<div class="left">
Left
</div>
<div class="right">
Right
</div>
</div>
Width is working as expected with right
occupying all the remaining space other than the 200px
that left
takes up. However, they are not full height?
This is not a duplicate as it uses Flexbox