'margin-bottom' Example : margin bottom « CSS « HTML / CSS






'margin-bottom' Example

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

    
      
        
    
  








Related examples in the same category

1.margin-bottom: 15px
2.margin-bottom: 5%
3.margin-bottom: 6px;
4.specify margin via one of the four separate margin properties: margin-top, margin-right, margin-bottom, and margin-left.
5.margin-bottom: 2em
6.Set margin for hr
7.Left-top Aligned and Offset
8.Right-bottom Aligned and Offset
9.Aligned-center Absolute
10.Top and bottom margins set 5% for me
11.Top Aligned Static Block
12.Static Block Bottom Aligned with margin-bottom: 0