I would like to change the font and text styles of the text in my Cartodb infowindow. Specifically, I'd like the name at the top to be larger font and bolded to act as an infowindow 'title' and the rest of the text to be a new font.

enter image description here

I haven't found a way of doing this on the online template, how can this be achieved for a beginner like me?

1 Answer 1


You need to use inline CSS code in the custom HTML option, for example:

  <p style="color:#FABADA;">{{country_name}}</p>


But take into account that fonts that aren't loaded in the system will not work, as adding fonts in the Custom HTML code is not allowed due to the sanitization that the custom code suffers.

  • thanks, is there a library of loaded fonts?
    – MFBawls
    Sep 3, 2015 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.