What's difference between auto and scroll properties of overflow? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's difference between auto and scroll properties of overflow?

21st Aug 2019, 5:49 AM
𝒜𝓃𝓊𝒿 𝓎𝒶𝒹𝒶𝓋
𝒜𝓃𝓊𝒿 𝓎𝒶𝒹𝒶𝓋 - avatar
2 Answers
+ 1
The "auto" value makes a scroll bar appear only when the content of an element overflows, if the content doesn't overflow then a scroll bar isn't displayed. The "scroll" value displays a scroll bar at all times even if an element's content doesn't overflow.
21st Aug 2019, 6:22 AM
Ryan
Ryan - avatar
+ 1
Thanks. I got it. 👍
21st Aug 2019, 6:28 AM
𝒜𝓃𝓊𝒿 𝓎𝒶𝒹𝒶𝓋
𝒜𝓃𝓊𝒿 𝓎𝒶𝒹𝒶𝓋 - avatar