A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/properties/overflow-y below:

overflow-y · WebPlatform Docs

overflow-y Summary

The overflow-y property is a specific case of the generic overflow property. It controls how extra content exceeding the y-axis of the bounding box of an element is rendered.

Overview table
Initial value
visible
Applies to
non-replaced block-level elements and non-replaced ‘inline-block’ elements
Inherited
No
Media
visual
Computed value
as specified, except ‘visible’
Animatable
No
CSS Object Model Property
overflowY
Syntax Values
visible
Default. Content is not clipped and scroll bars are not added. Elements are clipped to the size of the containing window or frame.
scroll
Content is clipped and scroll bars are added, even if the content does not exceed the dimensions of the object.
hidden
Content that exceeds the dimensions of the object is not shown.
auto
Content is clipped and scrolling is added only when necessary.
no-display
When the content doesn’t fit in the content box, the whole box is removed, as if ‘display: none’ were specified.
no-content
When the content doesn’t fit in the content box, the whole content is hidden, as if ‘visibility: hidden’ were specified.
Examples

Using overflow-y with its values.

.hidden {
    overflow-y: hidden;
}
.scroll {
    overflow-y: scroll;
}
.auto {
    overflow-y: auto;
}
.visible {
    overflow-y: visible;
}

View live example

Usage
 The overflow-y CSS property specifies whether to clip content, render a scroll mechanism, or display overflow content of a block-level element, when it overflows at the top and bottom edges.
Related specifications
CSS basic box model
Editor’s Draft
CSS3 module: The box model
Working Draft
CSS basic box model
Working Draft
See also Related Properties Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4