We can define an element within another, but command to appear behind its parent using z-index: -1
:
<div style="position:relative; width:100px; height:90px; background-color:#F00;">
<div style="position:absolute; width:200px; height:50px;
background-color:#00F; z-index:-1;">
</div>
</div>
Unfortunately, this doesn't work within flex items: The child does not only appear behind the flex item, but behind the flex container, too. How to solve it?