V
VUNETdotUS
Hello,
I have a simple structure of table created in DOM:
table:
row1:
cell1 cell2
row2:
cell1 (colSpan=2)
cell2 has a style.width = "0px" because I hide it first. The if I need
to put something inside of cell2, I modify its style.width = "150px"
and put some innerHTML in.
The problem occurs when some DIV content is placed inside cell1 of
row2 (where colspan=2 is used). DIV content breaks the width of cell2
and it is not 150 as set but over 50% or something.
I tried: setting width of DIV to 90%, setting width instead of
style.width to cell2, a few more things but NOTHING worked. Any ideas?
It works fine in FF, and in IE when DIV is not appended.
Thanks
I have a simple structure of table created in DOM:
table:
row1:
cell1 cell2
row2:
cell1 (colSpan=2)
cell2 has a style.width = "0px" because I hide it first. The if I need
to put something inside of cell2, I modify its style.width = "150px"
and put some innerHTML in.
The problem occurs when some DIV content is placed inside cell1 of
row2 (where colspan=2 is used). DIV content breaks the width of cell2
and it is not 150 as set but over 50% or something.
I tried: setting width of DIV to 90%, setting width instead of
style.width to cell2, a few more things but NOTHING worked. Any ideas?
It works fine in FF, and in IE when DIV is not appended.
Thanks