Created
October 2, 2016 17:07
-
-
Save 0632347878/2753d3874ae221928848d87b07769b59 to your computer and use it in GitHub Desktop.
positioning relative to parent
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
.positionedBlock { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translateX(-50%) translateY(-50%); | |
max-width: 700px; | |
width: 100%; | |
} | |
.parent { | |
position: relative; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment