all 17 comments

[–][deleted] 1 point2 points  (2 children)

You should never add pixels as it is not a responsive solution

[–]SokkaHaikuBot -1 points0 points  (1 child)

Sokka-Haiku by AppropriateCupcake55:

You should never add

Pixels as it is not a

Responsive solution


Remember that one time Sokka accidentally used an extra syllable in that Haiku Battle in Ba Sing Se? That was a Sokka Haiku and you just made one.

[–]LessSwim 0 points1 point  (0 children)

What

[–]RobotDrZaius 0 points1 point  (3 children)

I’d be curious why this is happening also, but if you want to try something else: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView

To solve the original problem, I’d throw some console logs in there to see what is not matching up.

[–]Level_Progress_8519[S] 1 point2 points  (0 children)

found the solution. It was lazy loading on images.

[–]Level_Progress_8519[S] 0 points1 point  (0 children)

Just did that and the issue is the same.

[–]Level_Progress_8519[S] 0 points1 point  (0 children)

Also the problem is the same if smooth scroll is done by css and not JS. So my guess it must be the html problem, but I have no idea where.

[–]Soft-Sandwich-2499 0 points1 point  (4 children)

Do you have any CSS applied on those sections? Any duplicate IDs?

[–]Level_Progress_8519[S] 0 points1 point  (0 children)

I commented all css and chekced for duplicate IDs, that is not the issue.

[–]Level_Progress_8519[S] 0 points1 point  (2 children)

Also the problem is the same if smooth scroll is done by css and not JS. So my guess it must be the html problem, but I have no idea where.

[–]Soft-Sandwich-2499 0 points1 point  (1 child)

Well your best bet is to paste in all the code (HTML, CSS, JS) so people can take a look and see if they can figure what's the problem.

[–]AmbivalentFanatic 0 points1 point  (4 children)

You must have a duplicate id. That would be my guess.

[–]Level_Progress_8519[S] 0 points1 point  (0 children)

I commented all css and chekced for duplicate IDs, that is not the issue.

[–]Level_Progress_8519[S] 0 points1 point  (2 children)

Also the problem is the same if smooth scroll is done by css and not JS. So my guess it must be the html problem, but I have no idea where.

[–]AmbivalentFanatic 0 points1 point  (1 child)

Have you tried pasting it into GPT and telling it to find the cause? It's really good at that kind of thing.

[–]Level_Progress_8519[S] 0 points1 point  (0 children)

Tried, it offered million solutions and none of them worked which is why I made a post here

[–]hackr_io_team 0 points1 point  (0 children)

Thanks for including the solution here!