{"id":14081,"date":"2011-09-05T20:53:30","date_gmt":"2011-09-06T03:53:30","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14081"},"modified":"2022-01-03T17:07:22","modified_gmt":"2022-01-04T01:07:22","slug":"overflow","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/o\/overflow\/","title":{"rendered":"overflow"},"content":{"rendered":"\n

The overflow<\/code> property controls what happens to content that breaks outside of its bounds: imagine a div<\/code> in which you’ve explicitly set to be 200px wide, but contains an image that is 300px wide. That image will stick out of the div and be visible<\/code> by default. Whereas if you set the overflow<\/code> value to hidden<\/code>, the image will cut off at 200px.<\/p>\n\n\n\n

div {\n  overflow:  visible | hidden | scroll | auto | inherit\n}<\/code><\/pre>\n\n\n\n