I have a form with a few fieldsets. One fieldset has a table of time preferences set by the user. The user can add and delete time preferences. When they add a row, a table row is dynamically inserted into the DOM using a jQuery append()
.
The issue is that in IE6 and IE7 any relatively positioned elements on the page do not "bump" down when the new table rows are added. Furthermore, they don't move when table rows are deleted either. They are kind of just stuck in their spots.
This would be relatively minor, but each fieldset is relatively positioned in order to avoid the IE background overflow issue with fieldsets. Therefore, the form likes quite bad after one adds two or more rows to the table.
Here is the CSS being applied to the fieldsets:
form.pancake fieldset {
position: relative;
margin-top: 1.5em;
padding-top: 1.5em;
}
form.pancake fieldset legend {
position: absolute;
top: -0.5em;
left: 0.5em;
}
When the position: relative
is removed from the stylesheet, the dynamically added rows work perfectly and the content moves down as appropriate.
Any help is much appreciated.