views:

32

answers:

0

I try to get line-height of element (this)

It's inside a hover() thats why i use $(this)...

> var lineHeightThis = $(this).css('line-height');

Setting up that var caused trouble. It seems like it is resetting (this) to "auto" !?

I need to do that to reset it.

> $(this).css('line-height',lineHeightThis);

The overall problem, instead of get - jquery does set too. Is the bug in jQuery or my code?