JSFiddle - React, Tailwind, and code Playground

by Yogesh Salgar

HTML

<div id="container" class="clearfix">
    <div id="left">
        <ul>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
            <li>item</li>
        </ul>
    </div>
    <div id="right">
        <ul>
            <li>item</li>
            <li>item</li>
            <li>item</li>
        </ul>
    </div>
</div>

CSS

#container {
    border: 1px solid black;
    padding: 20px;
    width:450px;
}
#left {
    width: 200px;
    height: 1000px;
    background-color: blue;
    float: left;
    margin-right: 20px;
}
#right {
    background-color: red;
    float: right;
    margin-left: 230px;
    position: fixed;
    width: 200px;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
.clearfix {
    display: inline-block;
}
 
html[xmlns] .clearfix {
    display: block;
}
 
* html .clearfix {
    height: 1%;
}