What is the purpose of the overflow property in CSS?

Subh Prakash Singh
Invent the Future
The overflow property in CSS defines how to handle content that exceeds the dimensions of an element’s box. It can be set to values like auto (automatically adds scrollbars), scroll (always displays scrollbars), or hidden (hides the overflowed content). For example, .box { overflow: auto; }