Navitabs Appearance Alteration

We’re using Navitabs in our Confluence instance and wanted to alter the background color of the tabs. However, we’re having difficulty overriding the default background color. The following is the space css we’re using:

div.localtabs-macro div.aui-tabs.horizontal-tabs>.tabs-menu>.menu-item  {
background-color: #76b42d; !important

Inspect element (see below) says that the background-color rule was being accepted, but the background color wasn't changing.

elementsinspectNavitab.pngAny thoughts/suggestions would be appreciated.


1 answer

1 accepted

bitvoodoo answered my question. To alter the appearance of the active and inactive tabs, I used the following css:

div.localtabs-macro div.aui-tabs.horizontal-tabs>.tabs-menu>.menu-item a {
background-color: #76b42d;
div.localtabs-macro div.aui-tabs.horizontal-tabs>.tabs-menu>.active-tab a {
background-color: #126f06;


Since I came across Katherine's solution which helped me, I'd like to pay it forward by sharing how to also change the border color for anyone that may come across this thread in the future:

.aui-tabs.horizontal-tabs > .tabs-menu > .menu-item > a, .aui-tabs.horizontal-tabs > .tabs-menu > .menu-item:first-child a, .aui-tabs.horizontal-tabs > .tabs-menu ~ .tabs-pane {
border-color: #000000;
.localtabs-macro > .horizontal-tabs.aui-tabs > .tabs-menu > {
border-color: #F0F0F0;

The element is excluded from the first so that the color of the border below the active tab can be changed separately. By default, this border is white, so if you have your tabs on a background that is not white, the one pixel white line is visible. Make the border match your background color if you want to keep the default stylization and just change color.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

423 views 18 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you