I have a table
like that:
<table width="100%" style="table-layout: fixed;" class="listtable"> ... </table>
After DOM load I remove the last td
. Every browser, except IE8 of course, keeps the table at 100%.
IE8 just removes that column leaving the space and not adjusting the other columns. When inspecting the table, the table
element is at 100% but the tbody
is not. I already tried setting the width of the tbody
after removing the column, but it had no effect.
Does anyone know how I can force IE8 to re-render my table and stretch over 100%?
Note: I'm not in control of the generated html on the server-side so I need to use JavaScript here.