Scroll Bar Horizontal

Scroll Bar Horizontal

by Daniel Gualberto

HTML

<script src="https://code.jquery.com/jquery-3.4.1.slim.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<h1>Here is the Normal one</h1>
<div class="Container">
  <div class="Content">I'm in Content and I'm very long</div>
</div>

<h1>And here is the Flipped one</h1>
<div class="Container Flipped">
  <div class="Content">I'm in Content and I'm very long</div>
</div>

CSS

.Container {
  width: 200px;
  overflow-y: auto;
}

.Content {
  width: 300px;
}

.Flipped,
.Flipped .Content {
  transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  /* IE 9 */
  -webkit-transform: rotateX(180deg);
  /* Safari and Chrome */
}