Created
April 15, 2014 14:25
-
-
Save Dexterstat/10736895 to your computer and use it in GitHub Desktop.
position middle horizontal and vertical
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
<div class="loginDiv"></div> | |
.loginDiv { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
text-align: center; | |
background-image: url('Images/loginBox.png'); | |
width:546px; | |
height:265px; | |
margin-left: -273px; /*half width*/ | |
margin-top: -132px; /*half height*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment