Created
April 25, 2017 17:09
-
-
Save ehzhang/df0b68b4cc8d962b6f4beca5ba7a5303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
.item { | |
display: inline-block; | |
width: 20px; | |
height: 20px; | |
position: relative; | |
background: red; | |
} | |
.item::before { | |
content: ''; | |
position: absolute; | |
top: 10px; | |
left: 10px; | |
width: 20px; | |
height: 20px; | |
background: blue; | |
z-index: -1; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="item"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment