Article From:https://segmentfault.com/q/1010000011712185
Question:

This is where I use absolute positioning to locate this position.
Here is my style:
#login-form {
position: absolute;
padding: 150px 200px 0px 450px;
}

Answer 0:
#login-form {
position: fixed;
padding: 150px 200px 0px 450px;
left:0;
right:0;
top:0;
bottom:0;
margin:auto;
}
/*Or absolute positioning * /#login-form {Position: fixed;Padding: 150px 200px 0px 450px;Left:50%;Top:50%;TransformTranslate3d (-50%, -50%, 0);}

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *