Stylized fonts in Confluence 6

Confluence provides the ability to adjust the presentation of pages through Cascading Style Sheets (CSS). This page helps you understand how to modify font style and font size using some CSS styles in Confluence.

The code below is the custom font code. You can copy and paste it into the space style sheet via the space manager.

Modify font

In order to customize fonts in Confluence, you first need to set the font you want for the body. Later, you may need to adjust the font size, since the relative size of each font style is different.

The relevant CSS style sheet is shown below. This stylesheet modifies the default font from Helvetica/Arial – sans serif   to Times/Times New Roman – serif . Actually the font Times is smaller than Helvetica, so we increased the font size to 14px.

In this stylesheet there are many tags called 'wiki-content', which define the tags in the wiki body that need to make some necessary changes for font size.

body {
     font-family: Times, "Times New Roman" , serif;
     font-size: 14px;
}
.wiki-content,
.wiki-content p,
.wiki-content table,
.wiki-content tr,
.wiki-content td,
.wiki-content th,
.wiki-content ol,
.wiki-content ul,
.wiki-content li {
     font-size: 14px;
}

 

https://www.cwiki.us/display/CONFLUENCEWIKI/Styling+Fonts+in+Confluence

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325235629&siteId=291194637