Tab change coding help

Hi,
I’ve successfully implemented tab change functionality into my site.

Below u can see I have it on two sites and included dummy buttons below to play around by moving to and from sites.

Link 1 : https://thestacksats.webflow.io/account/membership
Link 2 : https://thestacksats.webflow.io/account/subscription

But the problem which I have is the page is scrolled directly to the tab without showing the above content.

Pic 1 : what I wanted after button click :

Pic 2: what I get after button clicked

You can see the “Fill up the form details to star reading is moved up”. But I want it to be shown.

The code I used is

How to solve this so that the page starts from the top?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

We ran into a similar issue doing some work for a customer and found a fix.

This tutorial video below talks about “sticky tabs”, but also discusses how to offset the scroll using a custom attribute.

If you have any questions feel free to tag me!

Happy Wednesday!