18
rated 0 times
[
24]
[
6]
/ answers: 1 / hits: 20824
/ 12 Years ago, mon, december 31, 2012, 12:00:00
I am in such a situation that I have to set height of a div depends on the amount of content in it, I can't give min-height
in it. I know we can calculate height of div by :
$(#divid).height();
So is there any way we can calculate height of a div without having height parameter in it and give height to that div depends on the amount of content in it.
I hope I explained it clearly.
Thanks
More From » jquery