Skip to content

Instantly share code, notes, and snippets.

@michaelparenteau
Created April 16, 2012 15:29
Show Gist options
  • Select an option

  • Save michaelparenteau/2399479 to your computer and use it in GitHub Desktop.

Select an option

Save michaelparenteau/2399479 to your computer and use it in GitHub Desktop.

Revisions

  1. michaelparenteau created this gist Apr 16, 2012.
    27 changes: 27 additions & 0 deletions scroll-x.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    <!DOCTYPE html>
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>sidescroll</title>
    <link rel="stylesheet" href="http://reset5.googlecode.com/hg/reset.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <style type="text/css" media="screen">
    .wrapper {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    }
    li {
    display: inline-block;
    width: 300px;
    }
    </style>

    </head>
    <body>
    <ul class="wrapper">
    <li>one</li>
    <li>two</li>
    <li>three</li>
    <li>four</li>
    <li>five</li>
    </ul>
    </body>