<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div { | |
opacity: 0.8; | |
border-radius: 1px; | |
} | |
body > div > div > div { | |
width: 150px; | |
height: 150px; | |
margin-left: -10px; | |
position: relative; | |
top: 0; | |
background: green; | |
} | |
body > div { | |
height: 100px; | |
overflow: hidden; | |
} | |
body > div > div { | |
width: 200px; | |
height: 200px; | |
position: absolute; | |
} | |
</style> | |
</head> | |
<body> | |
<div> | |
<div> | |
<div></div> | |
</div> | |
</div> | |
</body> | |
</html> |