Select to view content in your preferred language

Attachment Viewer center images

870
2
Jump to solution
06-16-2022 09:09 AM
Labels (1)
KariWilliams1
New Contributor

Hi all, I am configuring an attachment viewer and I'm having a hard time centering the images in the About section. It will center the text, but when I click on the image, it only shows the option to Insert paragraph after block and the alignment option greys out. 

Has anyone had this issue and resolved it before? 

Thank you for your time. 

0 Kudos
1 Solution

Accepted Solutions
RyanLibed
Esri Contributor

Hi @KariWilliams1,

Currently, there are limitations to the text editor experience in regards to editing image styles in the UI.

However, if you opt into 'Source Editing' by clicking source in the rich text editor:

RyanLibed_0-1655755890743.png


You should be able to modify the HTML mark-up with inline CSS styles to center your image. Below is a code snippet example of how to center an image. This should point you in the right direction.

 

  <p style="text-align:center;">
    <img class="image_resized" style="width:80%;" src="INSERT_IMG_URL">
  </p>

 

 
Hopefully, this is a viable solution for you. Please let me know if you have any questions!

Best regards,
Ryan

View solution in original post

2 Replies
RyanLibed
Esri Contributor

Hi @KariWilliams1,

Currently, there are limitations to the text editor experience in regards to editing image styles in the UI.

However, if you opt into 'Source Editing' by clicking source in the rich text editor:

RyanLibed_0-1655755890743.png


You should be able to modify the HTML mark-up with inline CSS styles to center your image. Below is a code snippet example of how to center an image. This should point you in the right direction.

 

  <p style="text-align:center;">
    <img class="image_resized" style="width:80%;" src="INSERT_IMG_URL">
  </p>

 

 
Hopefully, this is a viable solution for you. Please let me know if you have any questions!

Best regards,
Ryan

KariWilliams1
New Contributor

that worked for me, thank you for your reply! 

0 Kudos