Created
March 10, 2017 18:54
-
-
Save LasseRafn/5e1899f7428372b7ba23c45ce05d2155 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
#login { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
margin-left: -150px; /* halvdelen af input bredden */ | |
margin-top: -34px; /* halvdelen af input højde x 2 + input margin-bottom */ | |
} | |
/* eller bare brug flexbox */ | |
body { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment