JSFiddle - React, Tailwind, and code Playground
HTML
<div id="left">
<div id="scrolWrapper">
<div id="scrol" class="fixed">
Navigation<br />
- <a href="#1" class="scroll">Link One</a><br />
- <a href="#2" class="scroll">Link Two</a><br />
- <a href="#3" class="scroll">Link Three</a>
</div>
</div>
</div>
<div id="clear"></div>
CSS
body {
padding: 0px;
height:500px;
}
#sidebar {
position: relative;
padding: 20px
}
#left {
width: 120px;
height: 400px;
border: 1px solid #000;
float: left;
}
#right {
width: 300px;
height: 400px;
border: 1px solid #000;
float: left;
}
#scrolWrapper {
margin-left: 0;
position: absolute;
left: 0;
width: 100px;
}
#scrol.fixed {
position: fixed;
top: 100px;
margin-bottom:40px;
}
#scrol {
background-color: #E6E8EB;
padding: 0 10px;
width: 100px;
}
#clear {
clear: both;
}