It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Centering images in a section

When I'm in Edit mode I can nicely center text + image underneath the text but the preview shows only text centered and images are aligned to the left.

1 answer

0 votes
Dominic_Lagger Community Leader Sep 19, 2019

Hi @Dawid Nawrot 

In confluence server, this works just fine in edit mode, and in view mode. 

edit.pngview.png

Perhaps, in confluence cloud, this is a little bit different. Can you share a printscreen?

Make sure, that you click on the picture and allign the picture to center. Don't just select all and center it, try to center the image explicitly.

I hope this helps a little bit.

Regards, Dominic

Edit mode

edit.png

 

Preview mode

view.png

Same image under the same text. Clearly in edit mode it's centered. The image is wider than text

I had a look in the code and the image does get class "image-center" but it doesn't do anything because its parent SPAN is inline and only gets width of the image, and then its parent P is not centered

 

html.pngYou can see it here. the first P is text and has centering. Second is the image

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

327 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you