Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically add horizontal rule under h1 and h2

Karie Kelly
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2013

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

0 votes
Guilherme Nedel [Atlassian]
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2013

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.

Hector Ojeda December 15, 2013

like where?

0 votes
Karie Kelly
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2013

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events