Skip to content

Instantly share code, notes, and snippets.

@itsthatguy
Created April 16, 2012 15:00
Show Gist options
  • Save itsthatguy/2399285 to your computer and use it in GitHub Desktop.
Save itsthatguy/2399285 to your computer and use it in GitHub Desktop.
fluid div with horizontal scrolling list inside
<div class="fluid">
<div class="wrapper">
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
<li>four</li>
<li>five</li>
</ul>
</div>
</div>
.fluid {
width: 100%;
border: 1px solid black;
overflow: hidden;
.wrapper {
overflow-x: scroll;
ul {
border: 1px dashed blue;
white-space: nowrap;
li {
border: 1px solid yellow;
display: inline-block;
width: 300px;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment