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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,942 views 27 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