Image align to middle css code example
Example 1: center image css
.centerImg {
display: block;
margin: 0 auto;
}
Example 2: how to make text center above image html
#container {
text-align: center;
}
.text {
display: inline-block;
margin: 0 20px 0 20px;
}
.img {
margin: 0 20px 0 20px;
width: 50px;
height: 50px;
}