Click to See Complete Forum and Search --> : Getting Actual Display Size when it Exceeds Style Constraint


ksevern
12-07-2006, 03:27 PM
I have a div that contains a table of variable size. When the table size exceeds the size specified by the div CSS class, the table forces the div to be larger than specified. I need to detect this situation and know the actual forced (minimum) display size of the div. This works well in IE. The offsetWidth returns the display size, but in Firefox it returns what the CSS class says it should be. I'm assuming that the div is actually stretched by the nested table and that the div cannot contain something that has a larger display size. Any ideas?

Thanks,
Ken Severn

ksevern
12-12-2006, 09:13 AM
Still looking for some clues on this one. I found a DOM sort of solution, but it's cumbersom and error prone.