You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117489 Question in case with anchor

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by matrix on Saturday, 06 December 2025 12:41 GMT

matrix

hi

i have an anchor-link: https://www.pontonier.ch/cms/verband-2/administration-mainmenu-191#tech-kommission

the anchor itself is after the word "Technische Kommission" (this is a tab, when you scroll a litle up). 

It's possible to sent with the anchor-link any infromation, that the site open a litle bit more to bottom. in my case, the tabs are behind the opned sticky menu.

Thank's for a help - when it's possible...

 

Ryan

Try adding this to your template css file, adjusting the value as required:

#tech-kommission {
  scroll-margin-top: 80px;
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix

hi ryan

thank's for the tip. but unfortunately no reaction. i use astroid framework.

Ryan

I'm not seeing the css rule applied to the achor link. If you added the css rule to the template stylesheet, you will need to recompile the css in the Astroid Framework.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix

after my test, i have deleted the css #tech.....

now, i have to insert this css code to with 250px. do you see now anythings?

matrix

code inserted in custom css

Attachments

Ryan

I can see the css rule but it does not appear to be working. I got this from an AI query, and it appeared to be the only way to solve this other than using javascript.

You can read about the css rule here - https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-margin-top

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

matrix

ok - thank's ryan