+ 3
I don't understand the diferent between auto and scroll
7 Antworten
+ 5
auto' only activates the scrollbars if the content inside the block pass trough of its limit. while 'scroll' property forces scrollbars to show up always.
+ 1
love you guys all wonderful and full of valuables
0
Leonardo Oliveira is absolutely right
0
overflow: scroll will hide all overflowing content and cause scroll bars to appear on the element in question. If the content does not overflow, the scrollbars will still be visible, but disabled.
overflow: auto is very similar, but the scrollbars only appear when the content is overflowing.
0
Auto will only show a scrollbar when any content is clipped.
Scroll will however always show the scrollbar even if all content fits and you cant scroll it.
0
scroll: scroll bars will be added even if there is not enough content to overflow the <div>.
auto: scroll bars are added IF AND ONLY IF content overflows.
- 1
auto is fixed
scroll allows you to scroll the text within the document box