<!DOCTYPE html> | |
<style> | |
.result { | |
position: relative; | |
background: green; | |
width: 100px; | |
height: 100px; | |
} | |
.result-child-1 { | |
background: rebeccapurple; | |
width: 10px; | |
height: 20px; | |
position: absolute; | |
top: 25px; | |
left: 5px; | |
} | |
.result-child-2 { | |
background: rebeccapurple; | |
width: 15px; | |
height: 25px; | |
position: absolute; | |
top: 60px; | |
left: 50px; | |
} | |
</style> | |
<div class="result"> | |
<div class="result-child-1"></div> | |
<div class="result-child-2"></div> | |
</div> |