Created
May 4, 2018 19:01
-
-
Save moxdev/3fda8025eba2019491d829d8c32bc8e5 to your computer and use it in GitHub Desktop.
Four images in equal four square boxes
This file contains hidden or 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
.parent { | |
position: relative; | |
} | |
.wrapper { | |
display: block; | |
width: 50%; | |
position: absolute; | |
overflow: hidden; | |
} | |
.wrapper.img-1 { | |
top: 0; | |
left: 0; | |
bottom: 50%; | |
} | |
.wrapper.img-2 { | |
top: 0; | |
left: 50%; | |
bottom: 50%; | |
} | |
.wrapper.img-3 { | |
top: 50%; | |
left: 0; | |
bottom: 0; | |
} | |
.wrapper.img-4 { | |
top: 50%; | |
left: 50%; | |
bottom: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment