Select to view content in your preferred language

How do I style a pop-up?

732
12
Jump to solution
06-20-2025 10:26 AM
AndyKubrin
Regular Contributor

How do I style the type in a pop-up? In the attached screen shot, the text seems to faint and too small to me. I want to set the color to #00000 and bump up the size to 14 or 16 px.

There must be a way. Can someone tell me?

Tags (2)
0 Kudos
12 Replies
Brian_McLeer
Frequent Contributor

@AndyKubrin when I look at the pop up settings, it looks like the HTML is in plain text. You might need to click Source button first, then apply HTML, exit source, then save. 

Brian_McLeer_0-1751915163816.png

When I apply the below code, this is how it looks for me. I did not save the web map, but this may work for you. 

Brian_McLeer_1-1751915258208.png

<div style="font-family:sans-serif;">
  <h3 style="color:#1F77B5;">
    <strong>{Site}: {Location}</strong>
  </h3>
  <table style="font-family:sans-serif; width:100%; border-collapse: collapse;">
    <tr>
      <th style="text-align:left; border: 1px solid #ccc; padding: 6px;">Latitude</th>
      <td style="border: 1px solid #ccc; padding: 6px;">{Latitude}</td>
    </tr>
    <tr>
      <th style="text-align:left; border: 1px solid #ccc; padding: 6px;">Longitude</th>
      <td style="border: 1px solid #ccc; padding: 6px;">{Longitude}</td>
    </tr>
    <tr>
      <th style="text-align:left; border: 1px solid #ccc; padding: 6px;">Notes</th>
      <td style="border: 1px solid #ccc; padding: 6px;">{Note}</td>
    </tr>
  </table>
</div>

 

 

0 Kudos
AndyKubrin
Regular Contributor

That did it! Thanks, @Brian_McLeer !

Brian_McLeer
Frequent Contributor
0 Kudos