CSS overflow scroll and auto | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

CSS overflow scroll and auto

what is the difference between overflow: scroll and overflow: auto?

3rd Aug 2017, 11:17 PM
Okami
Okami - avatar
9 Answers
+ 12
The first one force the browser to scroll. The second one do it automatically if it needed. https://code.sololearn.com/WI2WU3Zs7m3E/?ref=app
3rd Aug 2017, 11:24 PM
Maz
Maz - avatar
+ 9
4rontender, maybe i misunderstood, i am not a great chess player, please for any further explanation comment this (temporary) code: https://code.sololearn.com/WzdHK64mmpDs/?ref=app
3rd Aug 2017, 11:46 PM
Maz
Maz - avatar
+ 7
I am working on it. :P
4th Aug 2017, 12:28 AM
Maz
Maz - avatar
+ 4
overflow:auto is added and only shown when the amount of content overflows a <div> box for example. overflow:scroll, in short terms, will always give a scrollbar no matter what the amount of content is. edit: basically @Maz's answer. :P !
3rd Aug 2017, 11:28 PM
esenia
esenia - avatar
+ 3
@Maz can you help me a little?
3rd Aug 2017, 11:25 PM
Вап
+ 2
ayyyyyyyyyyyy!!!!!🙂🙂🙂 you forgot me?
4th Aug 2017, 12:28 AM
Вап
+ 2
sorry😳😳😳
4th Aug 2017, 12:29 AM
Вап
+ 1
@Maz LOOK, PLEASE, IN MY SANDBOXIE (fname --> "chess problem") https://code.sololearn.com/WwoKggKTbf16/#js
4th Aug 2017, 12:06 AM
Вап
0
Ok
18th Sep 2023, 10:07 AM
Adu Bekele
Adu Bekele - avatar