I have some sections linked to some a tags.
i tried scroll behaviour : smooth on body : it didn't worrk.
i applied it to HTML : It worked.
So what am i missing ? what is the diference between the two ?
body {
scroll-behavior: smooth;
}
section {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
the code is here