CSS Overflow (original) (raw)

Last Updated : 24 Jul, 2024

The CSS overflow controls the big content. It tells whether to clip content or to add scroll bars.

Try It:

Overflow Visible

Overflow Hidden

Overflow Auto

Overflow Scroll

**Currently Active Property:

overflow: hidden;

**Syntax:

overflow: visible | hidden | scroll | auto;

**Property Values:

The overflow property contains the following values:

**overflow-x and overflow-y: This property specifies how to change the overflow of elements. x deals with horizontal edges and y deals with vertical edges.

CSS Overflow Examples

**Example 1: In this example, we are using **overflow: visible; property.

html `

GEEKSFORGEEKS

The CSS overflow controls big content. It tells whether to clip content or to add scroll bars.

`

**Output:

**Example 2: In this example, we are using **overflow: scroll; property.

html `

GEEKSFORGEEKS

<p>
    The CSS overflow controls big content.
    It tells whether to clip content or
    to add scroll bars.
</p>

`

**Output: scroll

**Example 3: In this example, we are the **overflow: auto; property.

html `

GEEKSFORGEEKS

<p>
    The CSS overflow controls big content.
    It tells whether to clip content or
    to add scroll bars.
</p>

`

**Output:

**Supported Browser: