Tabs

An easy way to build a responsive and user-friendly tabs

Our Features

Structure your content

Different visual schemes

Use macro parameters to create many different and beautiful tabs skin.

Easy to use

A user-friendly macros

Useful

Tabs are very useful to format Confluence content

Getting Started

Cloud Documentation

User guide - First step

1. Add tabs macro to a page

  1. Edit the page and type /tabs, then choose Responsive Tabs. You can also find it in the macro browser (+ › Apps).
  2. Type inside the macro box. Start each tab with a heading. The heading becomes the tab’s name; everything below it, up to the next heading, becomes that tab’s content.
  3. Publish the page.

For example, this content inside the macro:

Heading: Overview
A short introduction and a table.
Heading: Installation
Step-by-step instructions.
Heading: FAQ
Questions and answers.

gives three tabs: Overview, Installation and FAQ.

A tab can hold anything a Confluence page can: text, tables, images, panels, task lists, code blocks, status lozenges, Jira issues and other macros.

While you edit, you see the content, not the tabs. Confluence shows the macro’s content so you can change it. The tabs appear when you publish or preview the page.

2. Which headings become tabs

By default, the largest heading you used starts each tab:

  • Write Heading 1s, and each Heading 1 is a tab.
  • Write only Heading 2s, and each Heading 2 is a tab.

Smaller headings stay ordinary content, so you can use subheadings inside a tab.

To choose the level yourself, for example to keep a Heading 1 as a title above Heading 2 tabs, open the configuration and set New tab at to a heading level.

3. Content above the first heading

Anything before the first heading isn’t part of a tab. It appears above the tabs, which makes it a good place for a short introduction.

User guide - Second step

1. Configure the tabs

Select the macro while editing and click the Edit (pencil) icon. The configuration opens with a live preview at the top, so you see each change before saving.

1.1. Colours

Setting Options Default
Tabs Black, Blue, Navy, Brown, Green, Orange, Pink, Red, Violet, Yellow Blue
Content background White, Blue light, Gray light, Green light, Orange light, Red light, Violet light, Yellow light White
Border None, Vertical sides, All sides None

1.2. Layout

Setting What it does Default
Orientation Horizontal puts the tabs in a row on top. Vertical puts them in a column on the left, with the content beside it. Horizontal
Icon position Top: icon above the name. Left: icon beside the name. Only: icon instead of the name. Top
New tab at Which heading level starts a tab. Automatic uses the largest heading you wrote. Automatic
Open first The tab readers see when the page loads. The first tab

Open first remembers the tab’s position, so renaming that tab doesn’t change it. If you remove tabs so the position no longer exists, the first tab opens.


2. Add icons to tabs

Each tab can have an icon. There are 701 icons to choose from.

2.1. With the icon picker

  1. Open the configuration.
  2. Under Tab icons, find the tab and click Choose (or Change).
  3. Type in the search box, for example rocket or calendar, and click an icon.
  4. Click Save.

The picker remembers icons by tab name. Reordering tabs keeps their icons; renaming a tab removes its icon, and the panel tells you so you can pick again.

2.2. By typing it in the heading

Put the icon’s name in curly braces at the start of the heading:

Heading: {home} Overview
Heading: {calendar} Schedule
Heading: {file-pdf} Reports

The {…} part is removed from the tab name. An icon typed in a heading takes priority over one chosen in the picker. If the name isn’t recognised, the tab simply has no icon.

Icon names: most icons use their Font Awesome 4.5 names, such as rocket, paper-plane, database, car or shopping-cart. The icon set of the Data Center app is included unchanged (home, calendar, file-pdf, success, warning…). A few Font Awesome icons whose name was already used by a Data Center icon start with fa-: fa-search, fa-star, fa-user, fa-calendar, fa-flag, fa-link. The quickest way to find a name is the picker’s search box.

Getting Started

Data center Documentation

Tabs Group macro

1 – Overview


Add macro to build a responsive and custom tabs. You need to set macro parameters and add some Tabs element.

2 – Insert macro


To insert the Tabs Group macro to a page:

1. In the Confluence editor, choose Insert > Other Macros.

2. Find and select the required macro.

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.
To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

 

3 – Parameters


The full list of parameters is shown in the following table.

Parameter
Required
Default
Description
Navigation color yes blue There are several special pastel colors: black, blue, navy, brown, green, orange, pink, red, violet, yellow.
Icon yes top

Indicate icon’s position.

Three options are available: only, left, top.

Border yes none

Three options are available: none, vertical-sides, all-sides.

Content background color yes white There are several special pastel colors: white, blue-light, gray-light, green-light, orange-light, red-light, violet-light, yellow-light.

4 – Examples


 

Tabs Element macro

1 – Overview


This macro can only be used with Tabs Group macro.

2 – Insert macro


To insert the Tabs Element macro to a page:

1. In the Confluence editor, choose Insert > Other Macros.

2. Find and select the required macro.

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.
To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

 

3 – Parameters


The full list of parameters is shown in the following table.

Parameter
Required
Default
Description
Name yes none

The name of tab.

Icon yes top

Choose an icon from our Icon Library.

Just you need to enter icon’s name.

Customize Tabs group color: How to customize existing color

A use case

We want to change the color of the item “blue” listed in the navigation color.

Solution

Add the following CSS and change “@blue” by your desired hex color:

/* default blue */
.kupper-tabs .c-tabs-nav .nav-blue{
    color: #fff !important;
    background-color: @blue;
}
.kupper-tabs .c-tabs-nav__link.is-active.nav-blue{
    color: @blue !important;
    background-color: #fff;
}
/**border option */
.kupper-tabs .c-tab.nav-blue.border-vertical-sides{
    border-bottom: 3px solid @blue;
}
.kupper-tabs .c-tabs-nav__link.is-active.nav-blue.border-vertical-sides{
    border-top: 3px solid @blue;
}
.kupper-tabs .c-tab.nav-blue.border-all-sides{
    border: 2px solid @blue;
}
.kupper-tabs .c-tabs-nav__link.is-active.nav-blue.border-all-sides{
    border-top: 2px solid @blue;
    border-right: 2px solid @blue;
    border-left: 2px solid @blue;
    margin-bottom: -2px;
}
/* end default blue */

Customize Tabs group color: How to add a new color

Case

We want to add a new color.

Solution

In two steps:

  1. Add a class name in the CSS class macro parameter like mycustomclass
  2. Add the following CSS:

.kupper-tabs .c-tabs-nav .mycustomclass{

  color: #fff !important;

    background-color: #dc3126;

}

.kupper-tabs .c-tabs-nav__link.is-active.mycustomclass{

    color: #dc3126 !important;

    background-color: #fff;

}

/**border option */

.kupper-tabs .c-tab.mycustomclass.border-vertical-sides{

  border-bottom: 3px solid #dc3126;

}

.kupper-tabs .c-tabs-nav__link.is-active.mycustomclass.border-vertical-sides{

    border-top: 3px solid #dc3126;

}

.kupper-tabs .c-tab.mycustomclass.border-all-sides{

  border: 2px solid #dc3126;

}

.kupper-tabs .c-tabs-nav__link.is-active.mycustomclass.border-all-sides{

    border-top: 2px solid #dc3126;

    border-right: 2px solid #dc3126;

    border-left: 2px solid #dc3126;

    margin-bottom: -2px;

}

How to add CSS style sheets on Confluence

To edit a space’s CSS style sheets:

  1. Go to the space and choose Space tools > Look and Feel from the bottom of the sidebar
  2. Choose Stylesheet then Edit.
  3. Paste your custom CSS into the text field.
  4. Save your changes. The new CSS will be visible on all content pages in the space.

 

To edit your global CSS stylesheet:

  1. Choose  > General Configuration > Stylesheet. 
  2. Choose Edit.
  3. Paste your custom CSS into the text field.
  4. Choose Save. 

resources

Icons Library

A repository of icons for all your design needs, our Icons Library offers a diverse collection of visually appealing and functional icons.