I gave 100% height to a div and I want the actual height in px. How can I find out the height of that div?
With jquery you can use this, when container is the id of the div:
$(document).ready(function() { alert($('#container').height()); });
2.1m questions
2.1m answers
60 comments
57.0k users