I would like to vertical center a div without JavaScript when its height isn’t fixed.
I found here one idea.
I wonder if there are other solutions to this problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This works:
Here’s link: http://jsbin.com/uvodop/2/edit
See how it’s vertically aligned within the box. Height as well isn’t fixed.
Hope it answers your question.