.columns { position: relative; max-width: 80%; max-height: 80vh; display: flex; margin-top: 20px; margin-bottom: 0px; margin-left: auto; margin-right: auto; justify-content: space-around; border: 1px solid black; overflow-x: scroll; overflow-y: scroll; } .left-sidebar { background: darkgray; padding: 10px; overflow-x: scroll; overflow-y: scroll; width: max-content; text-align: left; } .main-content { overflow-x: scroll; overflow-y: scroll; width: 60%; flex: 5; margin: 10px; border: 1px solid black; max-height: 89vh; background-color: #cccccc } .right-sidebar { background: darkgray; flex: 1; display: flex; flex-direction: column; position: sticky; margin: 5px; overflow-x: clip; overflow-y: scroll; align-items: flex-start; }