Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Centering images in a section

Dawid Nawrot
Contributor
September 19, 2019

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 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

Dawid Nawrot
Contributor
September 19, 2019

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

Dawid Nawrot
Contributor
September 19, 2019

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
AUG Leaders

Atlassian Community Events