blob: 3a6a0097edb0bdc555d9ce61f803e2a638466822 [file] [log] [blame]
<!DOCTYPE html>
<style>
body {
margin: 0;
}
.container {
border: 1px solid;
height: 50px;
width: 50px;
background-color: orange;
}
.child {
position: relative;
top: 20%;
left: 20%;
height: 10px;
width: 10px;
background-color: salmon;
}
</style>
<div class="container">
<div class="child"></div>
</div>
<br>
<div class="container" style="overflow:scroll">
<div class="child"></div>
</div>