'margin-top' Example : margin top « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'margin-top' Example

    
<html>
<head>
</head>
<body>
<p>The following image has a top margin of 300mm.</p>
<img src="http://www.java2s.com/style/logo.png" 
     height="50" 
     width="50" 
     style="margin-top='300mm'">
</body>
</html>

    
      
      








Related examples in the same category

1.'margin-top' Syntax and Note
2.'margin-top' Possible Values
3.'margin-top' is applied to