how to horizontally align a image to text in css code example
Example: center align an image css
<img src="myImg.png" class="center">
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
<img src="myImg.png" class="center">
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}