Maybe it is a stupid question, but I’d like to know if there is a “power” function that get to me the real height of a div, counting also the “display:none;” height for each element on it.
Is it just a dream?
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.
I’d say that the height you’re asking for is less “real” than than actual display height. You have a few options:
visibility: hiddeninsteadposition: fixed; top: 100%should do) and try #2 on that div.http://jsfiddle.net/jrrdp/1/