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="app-status">
  <div> Logo, Menu </div>
  <div class="stripe">
    <div class="scroll-wrap-2">
      <div class="left button"></div>
      <div class="scroll">
        <div class="content">
          <div>1</div>
          <div>2</div>
          <div>3</div>
          <div>4</div>
        </div>
      </div>
      <div class="right button"></div>
    </div>
    <div class="button"></div>
  </div>
</div>
</body>
</html>
 
body {
  width: 100vw;
}
.app-status {
  display: flex;
  width: 100vw;
}
.stripe {
  display: flex;
  width: 100%;
}
/* scrollbar hider */
.scroll-wrap-2 {
  display: flex;
  display: contents;
  margin-bottom: -50px;
  overflow: hidden;
}
.button {
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.scroll {
  overflow-x: scroll;
  
  /* scrollbar hider */
  padding-bottom: 50px;
}
.scroll > .content {
  display: flex;
  width: max-content;
}
.scroll > .content > div {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* 
.container {
  width: 40%;
  overflow-x: scroll;
  box-shadow: 0 0 0 1px red;
}
.container > .content {
  display: flex;
  width: max-content;
}
.container > .content > div {
  flex-shrink: 0;
}
 */
div {
  box-shadow: 0 0 0 1px;
  height: 40px;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
a-x-pro
0viewers