Navitabs Appearance Alteration
Asked by Katherine Wertz:

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.

Thanks!  
[](https://community.atlassian.com/t5/Confluence-questions/Navitabs-Appearance-Alteration/qaq-p/296762?attachment-id=886){#link_119252f8688717}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/50175/1/elementsinspectNavitab.png){#display_119252f8688717_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Navitabs-Appearance-Alteration/qaq-p/296762?attachment-id=887){#link_119252f8688717_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/50175/2/image2015-4-17%2013%3A10%3A55.png){#display_119252f8688717_2}


Answers:
author: Katherine Wertz
body: 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;
> }
> ```

Thanks!

comments: author: Andrew Plaisance
body: 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 &gt; .tabs-menu &gt; .menu-item &gt; a, .aui-tabs.horizontal-tabs &gt; .tabs-menu &gt; .menu-item:first-child a, .aui-tabs.horizontal-tabs &gt; .tabs-menu ~ .tabs-pane {border-color: #000000;}.localtabs-macro &gt; .horizontal-tabs.aui-tabs &gt; .tabs-menu &gt; .active-tab.menu-item {border-color: #F0F0F0;}
```

The *.active-tab.menu-item* 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.


author: gaperez@akamai.com
body: I am placing the code from Andrew's answer above inside of a CSS Style sheet on my Confluence page. Yet my tabs or the outline are not changing color. What am I missing here?


author: Katherine Wertz
body: It looks like the greater than signs were replaced by \&gt; Try:

```
.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 > .active-tab.menu-item {border-color: red;}
```


author: Hennah_Rahman
body: Does anyone know how to make the link for the inactive tab change color when you hover? I can change the text color but not the link.

Thanks!


author: Katherine Wertz
body: Hi,

Try adding something like:

```
div.localtabs-macro div.aui-tabs.horizontal-tabs>.tabs-menu>.menu-item a:hover {background-color: red; }
```

That will change the hover background color for all tabs. If you want the active tab hover to be different, also add:

```
div.localtabs-macro div.aui-tabs.horizontal-tabs>.tabs-menu>.active-tab a:hover {background-color: gray;}?
```


author: Hennah_Rahman
body: Thanks Katherine. I had that part working previously. The part I can't get to work is changing the line color when you hover.

I have the following that changes the color of the line for the active tab. Now I need something similar to change the line color when you hover over a tab.

```
/*set color of line under active tab*/.aui-tabs.horizontal-tabs>.tabs-menu>.menu-item.active-tab a::after {background: black;}
```

Thanks!