CSS overflow-y

The CSS overflow-y allows you to decide what to do with the top bottom edges of the content. You can try to run the following code to implement the overflow-y property −


Live Demo

<!DOCTYPE html>
         div {
            background-color: orange;
            width: 250px;
            height: 45px;
            border: 2px solid blue;
            overflow-x: hidden;
            overflow-y: scroll;
      <div>Overflow property used here. This is a demo text to show the working of CSS overflow-x and overflow-y.</div>