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
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 ...

606 views 20 11
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