JSFiddle - React, Tailwind, and code Playground
by kevindev725
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">
<div class ="container">
<div class="row">
<div class="left col-sm-3 sticky-top">
<h1> left container</h1>
</div>
<div class="right col-sm-7 offset-2">
<p>text1</p>
<p>text2</p>
<p>text3</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
<p>text1</p>
<p>text2</p>
<p>text3</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
<p>text1</p>
<p>text2</p>
<p>text3</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
<p>text1</p>
<p>text2</p>
<p>text3</p>
<p>text4</p>
<p>text5</p>
<p>text6</p>
<p>text7</p>
</div>
</div>
<div class="others">
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
<p>
others
</p>
</div>
</div>
CSS
.row {
background: #f8f9fa;
margin-top: 20px;
}
.col {
border: solid 1px #6c757d;
padding: 10px;
}
.left {
height: fit-content;
top: 0px;
}