I have a ul which is positioned relatively with absolute positioned lis inside it .How do i increase the height of the ul according to the content.
Adding class clearfix to the ul does not work
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.
When you use absolute positioned elements, they are actually removed from layout of the element from which they are placed, so you cannot grow the containing element automatically with size changes to the absolute positioned elements. You could utilize javascript techniques to calculate the size of the absolute positioned LI’s and then set the height of the containing UL accordingly.