The easiest way to center align an image in html is to wrap the img
inside a div
and set text-align
to center
for the div
.
Example of a center aligned image using the above snippet.

The easiest way to center align an image in html is to wrap the img
inside a div
and set text-align
to center
for the div
.
Example of a center aligned image using the above snippet.