on-internet
← Community

scroll behaviour smooth not working at all

Stack Overflow ·

I am wondering why my scroll smooth isn't working at all. I am not too sure why? I thought adding overflow-y: scroll; scroll-behavior: smooth; will help but its not working. Here is my code: #container{ overflow-y: scroll; scroll-behavior: smooth; } .topTab{ bottom: 0; position: fixed; font-size: 25px; color: white; } .pg{ font-size: 100px; height: 100vh; background-color: blue; text-align: center; } a{ color: white; } <div class = "topTab"> <li><a href="#1">1</a></li> <li><a href="#2">2</a></li> <li><a href="#3">3</a></li> </div> <div id = "container"> <div id = "1" class= "pg">1</div> <div i

Comments

Sign in or sign up to comment and upvote.

No comments yet.