JSFiddle - React, Tailwind, and code Playground

by sirko

HTML

<div id="container">
    <div id="top">
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            11
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
            1
    </div>
    <div id="bottom">
        blub
    </div>
</div>

CSS

html, body { 
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0;
}

#container{
    background-color: yellow;
    flex-direction: column;
    display: flex;
    height: 100%;
}

#top {
    background-color: red;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
        overflow: auto;
    white-space:pre;
}


#bottom {
    background-color: green;
    height: 4em;
}