I am having trouble getting a parent div to fill the screen with a transparent background. The code I'm using only results in a solid color background for the parent div.
Here is the code snippet I have been working with:
.outer {
position: relative;
z-index: 1;
background-color: rgba(255, 255, 255, 0.5);
height: 100%;
}
.inner {
position: absolute;
width: 100%;
top: 50px;
background-color: white;
padding: 20px;
}
<div class="outer">
<div class="inner">
<h5>Search</h5>
</div>
</div>