JSFiddle - React, Tailwind, and code Playground

by alemarch

HTML

<div id="header"></div>
    <div class="left">
        <div id="fixedleft"></div>
    </div>
    <div class="right"></div>
    <div id="footer"></div>

CSS

div {
border-radius: 5px;
}

#header {
height: 50px;
background-color: #F38630;
margin-bottom: 10px;
}

.left {
    height: 1300px;
width: 25%;
  
background-color: #A7DBD8;
float: left;
margin-bottom: 10px;
}

.right {
height: 1300px;
width: 75%;
background-color: #E0E4CC;
float: right;
margin-bottom: 10px;
    
}

#footer {
height: 50px;
background-color: #69D2E7;
clear: both;
}

#fixedleft {
    height: 50px;
    width: 25%;
    background-color: #FFFFFF;
    position: fixed;
    margin: 1px 1px 1px 1px;
}

JavaScript

$(window).bind("resize", function(){
    $("#fixedleft").width( parseInt($(".left").width()) -2)
})
$(function(){$(window).resize()})