I have the following code:
#left {
float: left;
width: 180px;
background-color: #ff0000;
}
#right {
overflow: hidden;
background-color: #00FF00;
}
<div>
<div id="left">
left
</div>
<div id="right">
right<br/> down
</div>
</div>
What I am trying to achieve is to make the left column's background-color
to fill the whole div
. This should be the case regardless of the height of the #right
column.
so far I have tried/added
display: flex;
height: 100%
flex 1;
To the #left
style but it is not working.
This has to be a CSS only solution.