I want to set an element whose position is absolute at center , means if element`s position are not absolute then we can do like :
margin : 0 auto;
But how we can do the same thing for the element whose position is absolute.?
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.
and set its parent as
position: relativeDEMO
A sample jQuery approach:
DEMO