How to center align an image in a library message? | XM Community
Skip to main content
Question

How to center align an image in a library message?

  • December 11, 2023
  • 5 replies
  • 156 views

Forum|alt.badge.img+4

We are looking to center an image in an email invite. When we highlight the image it only allows you to left align or right align. Does anyone have any custom HTML that will center align this image? 

5 replies

ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • 589 replies
  • December 12, 2023

Use rich text editor functionality of library message.


Forum|alt.badge.img+4
  • Author
  • Level 2 ●●
  • 7 replies
  • December 12, 2023

This doesn’t work. When you highlight an image in rich text editor the center align is grayed out. You can only select between Left and Right Align

 


Umang Upadhyay
QPN Level 4 ●●●●
Forum|alt.badge.img+25
  • QPN Level 4 ●●●●
  • 122 replies
  • December 13, 2023

center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}


Forum|alt.badge.img+4
  • Author
  • Level 2 ●●
  • 7 replies
  • December 13, 2023

@Umang Upadhyay where does this go? It isn’t working in the style box of the image properties.


TusharDalwani
QPN Level 6 ●●●●●●

Hello Sydney, you can align the image either left or right using the rich text editor and then using the source (2nd icon from the last in rich text editor) you can change the value for <align> tag to centre.