How do you center an image?

User 2886045 Photo


Registered User
38 posts

I can center buttons and text based on the alignment with the typography section, but if I put a placeholder image in my project, there's no way to center it across the row that I see. I had seen a way to do it before, but now I don't know what happened to it.

Also, I am trying to add a background color on my row and change my font color, size etc. I have done so as I want it to look on small mobile devices, but some of the fonts come up black and plain. Not what is pictured. Any suggestions?
User 2886045 Photo


Registered User
38 posts

Also, one more thing. The button attempts to center under the center alignment, but it doesn't actually center. It is slightly off center. Any particular reason why? Without messing with padding or margins it does this.
User 122279 Photo


Senior Advisor
14,547 posts

In order to center an image, you need to have it display: block; and margin: auto;

For your other questions you first have to tell us which programme you are using.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.