CSS overflow scroll and auto | Sololearn: Learn to code for FREE!


CSS overflow scroll and auto

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

8/3/2017 11:17:15 PM


8 Answers

New Answer


The first one force the browser to scroll. The second one do it automatically if it needed. https://code.sololearn.com/WI2WU3Zs7m3E/?ref=app


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


I am working on it. :P


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 !


@Maz can you help me a little?


ayyyyyyyyyyyy!!!!!🙂🙂🙂 you forgot me?




@Maz LOOK, PLEASE, IN MY SANDBOXIE (fname --> "chess problem") https://code.sololearn.com/WwoKggKTbf16/#js