img is left of center html code example
Example 1: center image css
.centerImg {
display: block;
margin: 0 auto;
}
Example 2: center an image
.someclass {
display: block;
margin-left: auto;
margin-right: auto;
}
.centerImg {
display: block;
margin: 0 auto;
}
.someclass {
display: block;
margin-left: auto;
margin-right: auto;
}