'padding-right' Example : padding right : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » padding right »

 

'padding-right' Example



    
<html>
<body>
<table>
    <tr>
        <td id="myTd">
            <img src="http://www.navioo.com/style/logo.png" 
                 height="100" 
                 width="100" 
                 border="3">
        </td>
    </tr>
</table>
<button onclick="myTd.style.paddingRight=0">Set padding to 0</button>
<button onclick="myTd.style.paddingRight=20">Set padding to 20</button>
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» padding right