S
Stewart
Hi,
I have a div with a table under it. I'm using the DOM to change that
table dynamically. But when I run it under FireFox, it makes the div
holding the table grow width-ways. The div itself has no assigned
width, although it is inside a td which has a % width set.
I experimented with removing and appending the same table, to prove it
was nothing to do with the data, and sure enough, the div still grows!
I have run out of ideas as to how to debug or fix this. Anyone shed any
light?
Example code (for making your div get wider) is:
var toc = document.getElementById('toc');
var tables = toc.getElementsByTagName('table');
var tmp = toc.removeChild(tables[0]);
toc.appendChild(tmp);
Stewart
I have a div with a table under it. I'm using the DOM to change that
table dynamically. But when I run it under FireFox, it makes the div
holding the table grow width-ways. The div itself has no assigned
width, although it is inside a td which has a % width set.
I experimented with removing and appending the same table, to prove it
was nothing to do with the data, and sure enough, the div still grows!
I have run out of ideas as to how to debug or fix this. Anyone shed any
light?
Example code (for making your div get wider) is:
var toc = document.getElementById('toc');
var tables = toc.getElementsByTagName('table');
var tmp = toc.removeChild(tables[0]);
toc.appendChild(tmp);
Stewart