<div class="container visible">
<div class="note">My <code>overlow-y</code> is <code>visible</code>.</div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magnam fuga odio sequi delectus rem? Tempora accusantium pariatur quaerat repudiandae explicabo laudantium itaque sapiente delectus labore eaque dicta consectetur dignissimos corporis!
</div>
<div class="container hidden">
<div class="note">My <code>overlow-y</code> is <code>hidden</code>.</div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Itaque qui consectetur quaerat quo hic quidem illum ipsum dolore modi. Numquam repellat cum iure quisquam veniam praesentium rerum nobis voluptatem tempore.
</div>
<div class="container scroll">
<div class="note">My <code>overlow-y</code> is <code>scroll</code>.</div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit labore laudantium nisi aliquid nulla qui quisquam recusandae quis corporis expedita ipsum debitis mollitia ducimus ex enim deleniti rerum quos. Tempora.
</div>
<div class="container auto">
<div class="note">My <code>overlow-y</code> is <code>auto</code>.</div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi minus voluptate mollitia optio maiores harum expedita numquam accusantium ut eligendi rem cupiditate illum aspernatur doloremque possimus vitae voluptates officia quo!
</div>
body {
background-color: #F5F5F5;
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.note {
max-width: 500px;
margin-bottom: 10px;
font-weight: bold;
color: red;
}
.container {
width: 250px;
height: 150px;
padding: 15px;
border: 1px solid grey;
float: left;
margin: 1em;
background-color: white;
}
.hidden {
overflow-y: hidden;
}
.scroll {
overflow-y: scroll;
}
.auto {
overflow-y: auto;
}
img {
width: 300px;
height: 250px;
}