Change vspace for image
<html> <head> <title>Build-o-Table</title> <script type="text/javascript"> function procImage() { var img = document.getElementById("img1"); img.vspace="10"; } </script> <body onload="procImage();"> <img id="img1" src="http://www.java2s.com/style/logo.png" /> <table id="table1"> <tr><td>adsf</td></tr> </table> </body> </html>