Navmap space-specific css broken after upgrade to 5

When we upgraded to version 5, the space-specific stylesheet that worked perfectly in version 3.5.x is now ignored. Here is an example of CSS that previously worked, but now does not. Is it no longer possible to format a navmap using local CSS?

a.navMapCell, a.navMapCell:link, a.navMapCell:visited
{
background-color:yellow;
}
a.navMapCell:link {
color: #000000;
}
a.navMapCell:visited {
text-decoration: none;
color: #FF0000;
}
Just so you know: I'd rather not edit the global stylesheets. I haven't got access to the server, they're very complicated, I don't want the responsibility of accidentally breaking the entire wiki etc. The ability to edit on a local, space level is all we need or want.

3 answers

I'm curious about this too. And just so you know, i tried the same css in the global stylesheet with no luck.

has the classname changed?

Hi, I just solved the problem! smile

You have to add .navMapContainer before each a.navMapCell declaration. See the following example.

.navMapContainer a.navMapCell
{
background-color:yellow;
}

.navMapContainer a.navMapCell:link {
color: #000000;
}

.navMapContainer a.navMapCell:visited {
text-decoration: none;
color: #FF0000;
}

That works for me (Confluence 5.8.9). smile

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 Jul 10, 2018 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 ...

902 views 23 12
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