What is the interest of scroll if auto does it also? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the interest of scroll if auto does it also?

Does auto and scroll have a difference? and of not why not always just use auto? thanks!

25th Apr 2018, 2:25 AM
Bareche
Bareche - avatar
1 Answer
+ 4
Values auto and scroll both make the content scrollable. The only difference is, in auto, the scroll bars are not displayed if the content doesn't overflow. On the other hand, in case of scroll, even if the content fits box, scroll bars will be displayed. Using either one is good!
25th Apr 2018, 7:34 AM
Dev
Dev - avatar