Select to view content in your preferred language

Vertical Alignment List Widget

112
1
2 weeks ago
Labels (1)
BJR
by
New Contributor

Has anyone built an ArcGIS Dashboard that vertically aligns a List Widget within the box? I have tried all sorts of HTML in the Advanced formatting, I have tried the JSON in the Assistant and I have not found any technique that achieves dynamic centering across multiple screen sizes. 

Screenshot 2025-04-24 at 1.34.04 PM.png

Here is my existing Source code

<p style="text-align:center;">
    <strong>Average Dwell Time</strong>
</p>
<h2 style="margin:0;text-align:center;">
    <span style="color:hsl(238,72%,63%);font-size:24px;"><strong>{field/avg_dwell_time}</strong></span>
</h2>

 

0 Kudos
1 Reply
RPGIS
by MVP Regular Contributor
MVP Regular Contributor

Hi @BJR,

One thing you can try is creating a table within a table and setting the alignment values via html on the inset table. I have used that method to center a table based on cell height.

<table border="{expression/tborder}" cellpadding="0" cellspacing="0" style="height:80vh">

vh uses viewport, aka screensize, when setting the height of a table so be careful when using that but it will allow for values to center based on height. I too have this issue and I am trying to find a work around but this is what I am testing currently.

0 Kudos