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