I've been attempting to position a div within another trapezoid-shaped div.
However, the inner div remains invisible no matter what I try.
Z-indexes have also been tested.
.trapezoid
{
border-color: transparent transparent rgba(255,0,0,0.2) transparent;
border-width: 0px 10px 38px 10px;
border-style: solid;
height: 0;
width: 40px;
background-size: 430px;
overflow: hidden;
background-repeat: no-repeat;
display: block;
text-indent: -99999px;
margin-top: 25px;
margin-bottom: 25px;
margin-left: 25px;
margin-right: 25px;
cursor: pointer;
}
.innerIcon
{
width: 100%;
height: 38px;
border-radius: 16px;
background-color: rgba(0,0,0,0.4);
}
<div class="trapezoid" title="Fire Range Down">
<!-- The inner div is still not visible -->
<div class="innerIcon"></div>
</div>
If anyone has a potential solution, please share it with me.