<!DOCTYPE html>
<
html
>
<
head
>
<
title
>
CSS overflow-y Property
</
title
>
<
style
>
.content {
background-color: lightgreen;
height: 100px;
width: 250px;
overflow-y: scroll;
}
</
style
>
</
head
>
<
body
>
<
h1
>The overflow-y Property</
h1
>
<
p
>
The CSS overflow-y property specifies the
behavior of content when it overflows a
block-level element’s top and bottom edges.
The content may be clipped, hidden or a
scrollbar may be displayed as specified.
</
p
>
<
h2
>overflow-y: scroll</
h2
>
<
div
class="content">
GeeksforGeeks is a computer science portal
with a huge variety of well written and
explained computer science and programming
articles,quizzes and interview questions.
The portal also has dedicated GATE preparation
and competitive programming sections.
</
div
>
</
body
>
</
html
>