This documentation relates to an early version of Confluence.
View this page in the current documentation or visit the current documentation home.

Change default font in Confluence

All Versions
Click for all versions
Confluence 2.7 Documentation

Index

There is no way to modify the default font from the user interface, so you will need to customise Confluence's CSS manually. This can be modified in your Confluence install directory under \confluence\styles\site-css.vm
(or under \confluence\WEB-INF\classes\styles\site-css.vm for earlier versions of Confluence).

If you have velocity caching disabled, you can modify the Confluence font without restarting the application server. Click on the browser's Refresh button to see the changes take effect.

The first entry in the file is:

body, p, td, table, tr, .bodytext, .stepfield {
	font-family: Verdana, arial, sans-serif;
	font-size: 11px;
	line-height: 16px;
	color: #000000;
	font-weight: normal;
}

Font Size

By changing the value of the font-size field relative to the line-height field, you will be able to increase or decrease the base font size shown in the browser.

This modification should work with Internet Explorer browsers. For other browsers like Mozilla Firefox, the modification may not show because the browser may have a default font configuration that prevents font size from being changed. Firefox users may like to modify the font setting preferences in the Content option, prior to making the above changes to Confluence.

Font-Family

The font-family property is a prioritiszed list of font family names and/or generic family names for an element. The browser will use the first value it recognises.

There are two types of font-family values:

  • family-name: The name of a font-family, like "times", "courier", "arial", etc.
  • generic-family: The name of a generic-family, like "serif", "sans-serif", "cursive", "fantasy", "monospace".
  • Separate each value with a comma, and always offer a generic-family name as the last alternative.
  • If a family-name contains white space, it should be quoted. Single quotes must be used when using the 'style' attribute in HTML.

More detailed discussions on modifying fonts are available in W3Schools' CSS Font Properties online documentation.

Labels

howdoi-faq howdoi-faq Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.