How to center image

Hello! I would like to center the following image in an article, but I can’t figure out how. Please help!

Image:
Screen Shot 2021-05-15 at 3.59.40 PM

Article:

Thanks so much!

Hello Nadia,

Thanks for writing in! Please set the margin of your image element to auto.

And if still the image does not get centered, you may insert this custom inline element CSS :

$el img {
  margin: 0 auto;
}

If the above suggestion does not help, provide us access to your site so that we can check your element settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Thank you! That worked – except the custom CSS that worked for me was:

img {
margin: 0 auto;
}

thanks for your help!!

Hey Nadia,

Please note that your working CSS will be applied to all images throughout the site, to avoid this you should paste the CSS provided by Runel in the Element CSS so it’s only applied to a specific element.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.