Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="outer-scroll">
    <div class="inner-scroll">
      <div class="content">
        Content
      </div>
    </div>
  </div>
</body>
</html>
 
* { box-sizing: border-box }
body { margin: 0 }
.outer-scroll {
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  border: 2px solid red;
}
.inner-scroll {
  width: 200vw;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(0.25turn, #3f87a6, #ebf8e1);
}
.content {
  width: 300px;
  height: 200vh;
  background: linear-gradient(#e66465, #9198e5);;
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers