Created
September 20, 2016 17:14
-
-
Save edkf/0026bb9628df0eb5c94156851aeb0692 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
.squared-wrapper { | |
position: relative; | |
&::before { | |
content: ''; | |
display: block; | |
padding-bottom: 100%; | |
} | |
} | |
.squared-centered { | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); | |
text-align: center; | |
width: 100%; | |
margin: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment