Styling Fonts in Confluence
Confluence provides the ability to adjust its visual style via Cascading Style Sheets (CSS). This tutorial shows you to change the fonts and font sizes of a Confluence page, using a few lines of CSS.
Screenshot 1: Default font in a Confluence page
Screenshot 2: Custom font in a Confluence page
Below is the code for the custom font. Copy and paste it into the Space Stylesheet form within the Space Administration section.
Changing the fonts
In order to customise the fonts in Confluence, you first need to set the body font to the font you want. Secondly, you may want to adjust the font size because different fonts have different relative sizes.
The relevant CSS is shown below. It changes Confluence's font from the default of Helvetica/Arial – sans serif to Times/Times New Roman – serif. To adjust for the fact that Times is a bit smaller than Helvetica, we increase the font size to 14 pixels. The many styles that 'wiki-content' in their definition are necessary to change the font size for all the tags in the wiki content.
- You need system administrator permissions to edit the CSS for a space or for the site.
- This function is turned off by default. To turn it on, go to > General Configuration > Security Configuration and choose Custom Stylesheets for Spaces.
Was this helpful?
Thanks for your feedback!