Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Markup -->
- <div class="container">
- <div class="imageOne image"></div>
- <div class="imageTwo image"></div>
- </div>
- <!-- CSS(important to add height to container class as well as image class since we have empty divs) -->
- .container {
- position: relative;
- height: 100px;
- }
- .image {
- position: absolute;
- width: 100px;
- height: 100px;
- border: 3px solid black;
- }
- .imageOne {
- z-index: 0;
- }
- .imageTwo {
- z-index: 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement