+ 2
Can we push images to center
8 Answers
+ 2
Yes but you have to put the image into a container (mostly a div) and set the container's text-align to center:
Here's an example:
<div style="text-align: center">
<img src="https://www.reddit.com/favicon.ico"></img>
</div>
+ 1
Or using css, inside a container as Texas said,
margin: 0 auto;
0
can put align attribute and than place img into center
0
any one
0
Anant Chaudhary Not anymore in HTML5.
0
so we can not
0
Not with the align attribute.
0
so how can we