<div class="container visible">
<div class="note">My <code>overflow-x</code> is <code>visible</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow-x/souvenire.jpg">
</div>
<div class="container hidden">
<div class="note">My <code>overflow-x</code> is <code>hidden</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow-x/souvenire.jpg" alt="" />
</div>
<div class="container scroll">
<div class="note">My <code>overflow-x</code> is <code>scroll</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow-x/souvenire.jpg" alt="" />
</div>
<div class="container auto">
<div class="note">My <code>overflow-x</code> is <code>auto</code>.</div>
<img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/overflow-x/souvenire.jpg" alt="" />
</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: 350px;
padding: 15px;
border: 1px solid grey;
float: left;
margin: 1em;
background-color: white;
}
.hidden {
overflow-x: hidden;
}
.scroll {
overflow-x: scroll;
}
.auto {
overflow-x: auto;
}
img {
width: 300px;
height: 250px;
}