Thursday, 15 April 2010

Getting height of an absolute DIV with jQuery -



Getting height of an absolute DIV with jQuery -

i trying the height attribute of absolute positioned div non predefined height attribute.

the height of div depends on dynamic content.

i've seen .height() function of jquery doesn't homecoming right height of absolute positioned div.

$(this).height() //not working

is there way height?

thanks.

you need have content within div or @ to the lowest degree define minimum height in order css height property—which otherwise undefined.

the .height() gets computed height element , needs predefining.

alternatives .innerheight() , .outerheight() methods. might work improve if working default content-box style.

jquery

No comments:

Post a Comment