I have just started evaluating Confluence and I am having trouble in understanding how Confluence uses CSS.
I can use the Space Adminstrator page to access the CSS and adjust the Heading styles, but how do I add a style to the CSS so that it shows up in the style selection drop-down on the edit page? Any new styles I add do not appear anywhere.
Thanks,
Chris
If for example your custom CSS does this:
#com-atlassian-confluence strong { color: limegreen; }
You'll need to update the style in the TinyMCE-based editor iframe too for your style to be seen when editing.
This can be achieve doing this in the same stylesheet:
#tinymce strong { color: limegreen; }
The #tinymce selector increases the specificity so that the style is not overridden.
Thanks for the answers guys. I will try out your suggestions.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your new CSS styles are available to use in page elements which support CSS parameters (like deck/cards, roundrect, etc) but they won't appear in the drop-down list of styles.
If you want other page authors to be aware of the new styles, you could create a page template which uses them.
I'm sure there will be an existing issue raised on this in the public Jira project for Confluence, as its been a long-standing issue.
Regards,
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.