<div class="container visible">
<div>My overflow is <code>visible</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow/souvenire.jpg" alt="" />
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum quo sequi debitis et facilis ab repudiandae animi incidunt ullam suscipit quam eos quidem similique est accusamus natus dolor voluptatibus blanditiis.
</div>
<div class="container hidden">
<div>My overflow is <code>hidden</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow/souvenire.jpg" alt="" />
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt quam necessitatibus blanditiis impedit accusantium illum quos cumque id mollitia a consectetur possimus repellat natus harum asperiores similique vitae eum tenetur.
</div>
<div class="container scroll">
<div>My overflow is <code>scroll</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow/souvenire.jpg" alt="" />
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto deleniti nemo quo praesentium enim recusandae voluptate soluta iusto animi ipsam asperiores sint. Sunt architecto temporibus praesentium numquam repellat iste quis.
</div>
<div class="container auto">
<div>My overflow is <code>auto</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow/souvenire.jpg" alt="" />
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iure harum consequatur eligendi est maiores libero vel perspiciatis aut debitis sequi labore deserunt fugit eum veniam suscipit voluptatibus eveniet sint minima!
</div>
<div class="container auto only-horizontal">
<div>My overflow is <code>auto</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow/souvenire.jpg" alt="" />
</div>
body {
background-color: #F5F5F5;
color: #555;
font-size: 1.1em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
width: 250px;
height: 350px;
padding: 15px;
border: 1px solid grey;
float: left;
margin: 30px 0 100px 100px;
background-color: white;
}
.hidden {
overflow: hidden;
}
.scroll {
overflow: scroll;
}
.auto {
overflow: auto;
}
img {
width: 300px;
height: 250px;
}
.container > div {
color: red;
font-weight: bold;
margin-bottom: 10px;
}