Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

The actual header is off the page when using the table of contents plugin to navigate a page section Edited

I've applied the table of contents (TOC) macro to create a list of links at the header 3 level. I can click on these to navigate to different sections of the page. It's really annoying though because when I click on a link and go to a section the actual header itself scrolls off the top of the page. For example, if I click in the TOC to navigate to "Section 3", the page scrolls to that section but the actual text "Section 3" is just off the page so it's not visible to the user. The text within section 3 is visible, but not the header itself. This actually makes it a really poor experience because it's not clear if you were actually taken to the right section. Any fix for this?

Confluence Version: 7.4.3

1 answer

Do you have a fixed header at the top of your Confluence page?

It looks like you may need to add some scroll-padding or scroll-margin to your Global Stylesheet so that the anchor is not hidden underneath the fixed header 

An example is below:

body {
  scroll-padding: 100px;
  scroll-margin-top: 10em;
}

Set the offset for in-page anchors links. Live demo. More info about scroll-padding and scroll-margin.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

59 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you