Skip to content

Instantly share code, notes, and snippets.

@Chrisedmo
Created January 10, 2012 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrisedmo/1590833 to your computer and use it in GitHub Desktop.
Save Chrisedmo/1590833 to your computer and use it in GitHub Desktop.
Experimenting with a side scroll for mobile nav
/**
* Experimenting with a side scroll for mobile nav
*/
topscroll {
display: none;
}
ul {
width: 1000px;
overflow-y: scroll;
background-color: grey;
}
li {
display: inline-block;
width: 150px;
height: 150px;
<!-- content to be placed inside <body>…</body> -->
<div id="topscroll">
<ul>
<li>box one</li>
<li>box two</li>
<li>box three</li>
<li>box four</li>
<li>box five</li>
</ul>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment