How to increase the spacing between Table of Contents' entries

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The Table of Contents macro provides a tree of the headings of a page. The small spacing between each entry can make it harder to read depending on the amount and length of the headings used.

Environment

Confluence Server or Data Center (any version)

Solution

The spacing between Table of Contents' entries can be increased using a CSS customization. To apply the customization to a single space, follow these steps:

  1. Go to the General Configuration > Stylesheet
  2. Choose Edit
  3. Paste the CSS code below, which you can further adapt to your needs:

    a.toc-link{
        line-height: 35px;
    }
  4. Save the changes and check a page with a Table of Contents macro to confirm the changes


Last modified on Nov 3, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.