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






'margin-right' Example

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

    
      
        
    
  








Related examples in the same category

1.margin-right: auto
2.margin-right: 15%
3.margin-right: 4px;
4.Set margin for four directions
5.Set margin left and right to auto
6.Centered body
7.Left Aligned and Offset Static Block
8.Center Aligned static
9.Right Aligned static
10.Center-middle Aligned
11.Right-top Aligned and Offset
12.Aligned center horizontally for absolute position
13.Aligned center vertically for absolute position
14.Left Aligned Sized Static Block with margin-right: auto
15.Sized Static Block right aligned
16.Stretched Static Block right aligned
17.Sized Absolute right aligned
18.Sized Relative block
19.Stretched Absolute right offset