How to automatically add horizontal rule under h1 and h2

In the latest Confluence upgrade, Atlassian chose to change their h1 and h2 styles such that a horizontal rule no longer automatically appears under them when chosen.

We have this as part of our content user guide and, although there is a workaround to manually add this each time, we want these headings to always have this (the way Atlassian used to do it). Is there anything that we can do in our stylesheet to accomplish this?

Irritating when Atlassian removes features without communicating.

2 answers

I can go into the Custom CSS and add something like this:

  1. .wiki-content h1, h2 {
  2. border-bottom: 2px solid #CCCCCC
  3. }

But, does anyone know what the original definition was for h1 and h2 so that I can put it back the way it was?

Hello Karie, the original definition was the following:

h1, h2,
.wiki-content h2
{border-bottom: 1px solid #919699  ;
    padding-bottom: 1px;


However, some elements have changed(in Connie 5.1.3), so we need to insert the attributes in a different path to make them work properly.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,168 views 4 6
Read article

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