Using DOM elements trying to add cellPadding to a table: why does
var FirstTabContent = document.createElement('div');
var Newtable = document.createElement('table');
Newtable.border = "1";
Newtable.cellpadding = "20px 20px 20px 20px";
///////////////
//populate table
///////////////
FirstTabContent.appendChild(Newtable);
return FirstTabContent.innerHTML;
return:
<table border="1">
<tbody>
<tr>
<td>
<b>id</b>
</td>
<td>14079<br>
</td>
</tr>
</tbody>
</table>
where is the cellpadding?