Change table border width and cell padding : Table « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Table
Change table border width and cell padding
<html>
<head>
<title>Build-o-Table</title>
<script type="text/javascript">
function procImage() {
var tbl = document.getElementById('table1');
tbl.border="5px";
tbl.cellPadding="5px";
}
</script>
<body onload="procImage();">
<table id="table1">
<tr><td>adsf</td></tr>
</table>
</body>
</html>
Related examples in the same category