How to increase the spacing between Table of Contents' entries
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:
- Go to the General Configuration > Stylesheet
- Choose Edit
Paste the CSS code below, which you can further adapt to your needs:
a.toc-link{ line-height: 35px; }
- Save the changes and check a page with a Table of Contents macro to confirm the changes