The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Center an image
I tried with align-center and margin: auto but didn’t work.
How do you center an image?
You can apply text-align: center; on the container. Or you need to make the image display as block, using display: block;