Creating scrollable content areas with overflow
The overflow property can be used to make content scrollable when it exceeds the size of its container. By setting overflow to auto or scroll, you can enable scrollbars that allow users to view overflowing content.
overflow: auto — scrollbars appear only when content overflows.
overflow: scroll — scrollbars are always visible, even if content fits.
overflow-x and overflow-y — can be used to create horizontal or vertical scrollbars independently.