I am rendering a html table using javascript & jQuery. The aim is to show a colored box (table with colored td) if there is a color supplied by parameter. If not then show nothing (so i am showing empty table with ). But for both these cases I do not want to show any border. I want a flat color box / empty white box.
if (colors == null || colors == '') {
return '<table border="0" style="none" cellpadding="0" cellspacing="3"><tr><td> </td></tr></table>'
}
In IE 6 and 7 I can see boxes with no border, but in IE 8 it always shows a border to these table td's even if I mention Border="0". It looks like a 3d cell.
Is there any alternative for IE8? Same code works fine in other versions.