JSFiddle - React, Tailwind, and code Playground

by Yaroslav Samardak

HTML

<div class="wrapper">
    <div class="container">
        <div class="row">
            <div class="cell">1</div>
            <div class="cell">2</div>
            <div class="cell">3</div>
        </div>
        <div class="row" style="overflow: overlay;">
            <div class="cell">1</div>
            <div class="cell">
                <div style="height: 200px;">huge content</div>
            </div>
            <div class="cell">3</div>
        </div>
        <div class="row">
            <div class="cell">1</div>
            <div class="cell">2</div>
            <div class="cell">3</div>
        </div>
    </div>
</div>

CSS

.wrapper {
    width: 600px;
    height: 150px;
    background: grey;
}
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.row {
    display: flex;
    flex-direction: row;
    flex: 1;
    border: 3px solid green;
}
.cell {
    flex: 1;
    border: 1px solid red;
}
::-webkit-scrollbar, {
    width: 16px;
    z-index: 1000;
    overflow: overlay;
}
::-webkit-input-placeholder,
::-webkit-scrollbar-thumb{
    background-clip: padding-box;
    border-radius: 16px;
    border: 4px solid transparent;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    -webkit-transition: background-color 0.1s ease;
    transition: background-color 0.1s ease;
}