CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS overflow Property

CSS overflow Property

 

 

The overflow property is used to define what should happen if content overflows an element box. It specifies whether to clip content or to add scrollbars when an element content is too big to fit in a specified area. It only works with block elements.

 

Default Value:-

 

Its default value is visible.

 

Syntax:-

 

Its syntax is:- overflow: visible | hidden | clip | scroll | auto | initial | inherit;

 

Further Explanation:-

 

Value Description
visible The overflow is not clipped.
hidden The overflow is clipped, and the rest of the content will be invisible.
clip The overflow is clipped, and the rest of the content will be invisible.
scroll The overflow is clipped, but a scroll bar is added to see the rest of the content
auto If overflow is clipped, a scroll bar should be added to see the rest of the content
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS