Tutorial :convert auto height of TR to pixel or percentate


Is anyone know how to convert the height of TR element which is in AUTO to pixel or percentage?


Do you mean at run time using JS or in the development phase?

You could always use the ruler made available in the Web Developer tool bar to measure it, and then use that value in your CSS.

Or, any calculating using JS for the height of a tr element should return it in pixels.


using jquery its trivial.

      myTrHeight = $("#myTr").height()    

that will give you the height in pixels.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »