This content applies to a previous version of CARTO
In October 2021 we released a new version of our platform. You can find the latest documentation at docs.carto.com
Back to Help Center
How can I change the style of a Pop-Up?
You can change the appearance of a Pop-Up by editing its HTML with inline styles. For instance, to set a click Pop-Up’s width to 150px, select initial settings in the POP-UP HOVER panel with its toggle set to Values, then click the toggle to switch it to HTML. Add a style attribute to the first div to define a maximum width:
<div class="CDB-infowindow CDB-infowindow--light js-infowindow" style="max-width:150px">
Important note: Scripts should not be included in the HTML panel.
