Source code

Revision control

Copy as Markdown

Other Tools

<html>
<head>
<style>
div {
width: 100px;
height: 100px;
position:relative;
}
#first {
background-color: red;
z-index: 1;
}
#second {
top: -50px;
background-color: green;
z-index: 1;
}
</style>
</head>
<body>
<div id="first"></div>
<div id="second"></div>
</body>
</html>