I am currently working on a design featuring two columns, each set to occupy 50% of the width. I am facing a challenge with ensuring that the height of these columns stretches to the full height of the screen, even when they are empty, so I can showcase the background color effectively. I attempted using position: absolute, but I am encountering issues where only one column is visible.
Here is my HTML:
.left-column {
width: 50%;
height: 100%;
background-color: red;
float: left;
}
.right-column {
width: 50%;
height: 100%;
background-color: blue;
float: left;
}
.wrapper {
background: green;
margin: 0;
padding: 0px;
}
<div class="wrapper">
<div class="left-column">
<div class="left-content"></div>
</div>
<div class="right-column"></div>
</div>