'padding-left' Example
<html> <body> <table> <tr> <td id="myTd"> <img src="http://www.java2s.com/style/logo.png" height="100" width="100" border="5"> </td> </tr> </table> <button onclick="myTd.style.paddingLeft=0">Set padding to 0</button> <button onclick="myTd.style.paddingLeft=20">Set padding to 20</button> </body> </html>