HOW TO
In Portal for ArcGIS and ArcGIS Online Map Viewer, the text alignment options available are 'Align left', 'Align right', 'Align center', and 'Justify'. These options change the placement of the text within a text box horizontally.
However, there is no option to vertically align the text to the middle of an image in the pop-ups as shown in the image below.
As a workaround, HTML formatting can be used to insert a table to achieve the desired result. In this article, the original text used to demonstrate the workflow is aligned at the bottom of the image.
<figure class="table"> <table style="border-collapse:collapse;" border="0"> <tbody> <tr> <td style="width:30%;"> <img class="image_resized" style="width:100%;" src="<link_to_image>" alt="" width="100" height="100"> </td> <td style="width:70%;"> insert value for cell here </td> </tr> </tbody> </table> </figure>
The text is vertically aligned to the middle of the image in the pop-up.
Article ID: 000030467
Get help from ArcGIS experts
Download the Esri Support App