Get a Free Trial
GrabzIt's Online Community

Center image in <td>

Converting html string to docx:

<div style="text-align:center;"><img class="imgTopLogo" src="https://www.xyz.com//media/education-icon.png" /></div> (centers fine)
<table style="width:100%;"><tr><td>
<p style="text-align:center;">${modifiedCourseData.certificateHeadline}</p> (centers fine)
<p style="text-align:center;"><img class="imgTopLogo" src="https://www.xyz.com//media/education-icon.png" /></p> (does not center)
<p style="text-align:center;">${modifiedCourseData.certificateHeadline}</p> (centers fine)
...

How can I center an image in a TD? Thanks!

Asked by anonymous on the 17th of February 2023

Thanks for bringing this to our attention. The issue should now be fixed.

Answered by GrabzIt Support on the 17th of February 2023