The overflow-y property specifies the handling of overflow in the vertical direction (i.e., overflow from the top and bottom sides of the box).

  • Initial valuevisible
  • Applies toBlock containers, flex containers and grid containers
  • InheritedNo
  • MediaVisual
  • Computed valueAs specified
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript syntaxobject.style.overflowY
Formal syntax: visible | hidden | scroll | auto | paged-x | paged-y | paged-x-controls | paged-y-controls | fragments

overflow-y: visible;
overflow-y: hidden;
overflow-y: scroll;
overflow-y: auto;
overflow-y: paged-x;
overflow-y: paged-y;
overflow-y: paged-x-controls;
overflow-y: paged-y-controls;
overflow-y: fragments;
  • visibleContent is not clipped and scroll bars are not added. Elements are clipped to the size of the containing window or frame.
  • hiddenContent that exceeds the dimensions of the object is not shown.
  • scrollContent is clipped and scroll bars are added, even if the content does not exceed the dimensions of the object.
  • autoContent is clipped and scrolling is added only when necessary.
  • paged-xNew
  • paged-yNew
  • paged-x-controlsNew
  • paged-y-controlsNew
  • fragmentsNew
.class {
   overflow-y: scroll; 
}
?Firefox?Explorer?Chrome?Safari?Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.