The correct values are scroll and auto. The CSS overflow property controls what happens when content is too large to fit inside an element’s box. MDN describes overflow as setting the desired behavior when content does not fit inside the element’s padding box. The value overflow: scroll creates a scroll container and displays scrollbars so overflowing content can be reached, even when the scrollbar may not be strictly needed in some rendering environments. The value overflow: auto also creates scrolling behavior when content overflows, but it is conditional: scrollbars appear only when the content exceeds the available box size. hidden is incorrect because it clips overflowing content and hides the excess rather than exposing it through a scrollbar. visible is also incorrect because it allows overflow to render outside the element box and does not create a scroll container. Therefore, when the question asks which settings produce a scrollbar if content overflows, the precise answers are scroll and auto. References/topics: CSS overflow, scroll containers, overflow clipping, automatic scrollbars, layout flow.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit