text style in confluence
Asked by David Darbinyan:

When writing a page in confluence one can select style for the text from a limited choice (paragraph, heading1,..., preformated, quote) of drop-down menu.  

is it possible to create new or edit mentioned styles ?

thanks

David


Answers:
author: Shannon S
body: Hi David,

You could write a [User Macro](https://confluence.atlassian.com/display/DOC/Writing+User+Macros?_ga=2.241970306.1805824230.1517845659-306096126.1516091163&_gac=1.218412587.1516875507.CI2P1-XurM8CFUK4GwodnowM2w) and include it as a macro there, or [style with CSS](https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html), both providing you're on the Server version of Confluence.

If you're in Cloud then it may require an add-on, but I'm not aware of any specific ones that will do that. I've tagged your question as a Marketplace App question as well so if any users know of some add-ons that can help you with that, they will be able to answer here.

Let me know if you have any questions.

Regards,

Shannon

comments: author: David Darbinyan
body: hi Shannon.

thanks for replay. trying to understand how to use it:)


author: Shannon S
body: You're welcome, David!

Take care,

Shannon


author: David Darbinyan
body: hello Shanon

is it possible to use other font in those macros?

thnaks

comments: author: Shannon S
body: Hi David,

You sure can!

On the article I sent you, [Writing User Macros](https://confluence.atlassian.com/doc/writing-user-macros-4485.html), there are some example macros at the bottom that show you how to style your text (including font size and color) and this question below shows you how to specify a font or font-family:

* [Confluence macro specifying font and special character](https://community.atlassian.com/t5/Confluence-questions/Confluence-macro-specifying-font-and-special-character/qaq-p/381491)

For example:

```
## @noparams&lt;span style="font-family: EversonMono;"&gt;?&lt;/span&gt;
```

Let me know if you have any questions.

Regards,

Shannon


author: Rajinder Singh
body: Hi Shannon,

it's not working for me. see below:

## [@Param](/t5/user/viewprofilepage/user-id/1345631) 0:title=colour\|type=string  
## [@Param](/t5/user/viewprofilepage/user-id/1345631) 1:title=size\|type=string  
## [@Param](/t5/user/viewprofilepage/user-id/1345631) 2:title=font-family: EversonMono\|type=string

\<span style="color: $param0; font-size: $param1; font-family: EversonMono: $param2"\>$body\</span\>

Can you please correct if it is wrong. i want font style should be come with option same like MS word doc, excel.

![Font theme.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46133iEDB24BD4D967FEDD/image-size/large?v=v2&px=999 "Font theme.PNG")


author: Shannon S
body: Rajinder,

I'm not actually very familiar with this myself, but it looks like you used a colon and not a semi-colon in your example after the name of the font.

Also you want to be careful when using an external font like that, because if the user doesn't have the font on their computer then it won't display. If you were to use a [web safe font](https://www.w3schools.com/cssref/css_websafe_fonts.asp), does it work? It will call the font from the user's computer or browser, but not from Confluence itself.

Shannon


Tags: atlassian-marketplace