How do I change HTML content to be a JS variable?

HTML/JS: How to find the height of a variable height table cell (height based on content)

  • Answer:

    dsgdev has a tricky solution for this but you need to modify your table cell content slightly. his idea is that if you create a small (and invisible) div on top and bottom of the cell, then you can measure the distance between the two divs. here's the solution detailed: http://dsgdev.wordpress.com/2007/03/07/get-table-cell-heights-with-javascript/ you might want to check out the comments too because they contain some useful hints.

ArcyQwerty at Answerbag.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.