Created
January 3, 2017 09:16
-
-
Save sarvar/a0700f8be0e79c0f0d7291f9dff160cc to your computer and use it in GitHub Desktop.
How to Center an Absolutely Positioned Element Using CSS
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
.sherdavCompany | |
width: 50% | |
height: 50% | |
overflow: auto | |
margin: auto | |
position: absolute | |
top: 0 | |
left: 0 | |
bottom: 0 | |
right: 0 | |
text-align: center |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment