Forums

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

How can I get consistent spacing above lists?

Michal Charemza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 12, 2024

When I have numbered or bulleted lists in a page, the first list of each type in a page has really small spacing above it - too small to my eye.

But subsequent lists down the page the spacing looks fine. Investigating the CSS in the page with dev tools, I see this which I suspect is the culprit:

 

.css-b8wh5k ul:first-of-type, .css-b8wh5k ol:first-of-type {
margin-top0px;
}

Is there a way to control/disable this, so all lists have the same spacing above them?

Note: when editing it looks fine. Only when a page is published do I see the inconsistent spacing.

1 answer

2 votes
Barbara Szczesniak
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.
January 12, 2024

@Michal Charemza I never noticed this, but, now that you've pointed it out, I see this on my pages too. To me, the first list doesn't look that bad, so it's not at the top of my list of Confluence issues. I will watch this question, though, in case someone has an explanation or fix.

Tobias Schlund
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2024

I have the same problem and it bothers me. The first listing is too close to the headline or the text (margin-top: 0). Unfortunately I can't customize CSS myself.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events