align image right css code example
Example 1: css align image right
<img style="float: right;" alt="" src="http://example.com/image.png" />
Example 2: how to center align the html element in css examples
#inner {
width: 50%;
margin: 0 auto;
}
# center text
.center {
text-align: center;
border: 3px solid green;
}
Example 3: how to align an image left in css
<div style="text-align: left"><img src="image/your-image.png" width="100" /></div>Copy