Skip to main content
Skip table of contents

Define & Add own CSS Class for Dropdown

Before you can use a custom CSS class for your dropdowns you have to define them first.

You have to be the administrator of your confluence instance or a space admin to create your own CSS class.

You need to now the basics of CSS.

Create your CSS Class

  1. Think about if this new CSS class will be used in one or multiple spaces. If you decide that it will only be used in one space, then go to the Space Tools of the according space an navigate to Look and Feel and then Stylesheet. Here can you edit the stylesheet for the space. If you decide that it might be used in multiple spaces, then go to the Confluence Administration and navigate to Stylesheet in the Look and Feel section. Here can you edit the global stylesheet.

  2. Click on the Edit button to modify the stylesheet. Now you can create your own CSS class. After defining your CSS class press the Save button to save your changes.

It could look like this:

Custom CSS Class | Image

Add your CSS Class in the Configurations

  1. Go to the space or global EDM configurations depending on whether the CSS class should be available only in one or multiple spaces.

  2. In the CSS section of the configuration, enter the name of your CSS class and press the Add button.

Don’t forget to save the changes with the Save button at the bottom.

Use your CSS Class

  1. Insert a new macro or find one on a page where your CSS class should be available.

  2. Select your CSS class in the Style Class dropdown in the macro settings and save them.


Dropdown with CSS Class | Image

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.