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 Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

868 views 2 13
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