Reply To: Centered Images Have Clickable Areas Outside the Image

Home Forums Support Centered Images Have Clickable Areas Outside the Image Reply To: Centered Images Have Clickable Areas Outside the Image

#181684
Tom
Lead Developer
Lead Developer

text-align:center only works on the container containing the image – not on the image itself: http://stackoverflow.com/questions/7055393/center-image-using-text-align-center

So you need to do something like this:

<div class="image-container">
    <img src="URL TO MY CENTERED IMAGE" alt="" />
</div>

Then add your CSS:

.image-container {
    text-align: center;
}