centralize your image in css code example
Example 1: center image css
.centerImg {
display: block;
margin: 0 auto;
}
Example 2: css for displaying image center
text-align: center;
.centerImg {
display: block;
margin: 0 auto;
}
text-align: center;