JSFiddle - React, Tailwind, and code Playground

HTML

<div class="left">Left</div>
<div class="center">Center</div>
<div class="right">Right</div>

CSS

.left, .right { width: 10px; }
.center { width: 80%; }
div { float: left; }

JavaScript

var func = function() { 
    $(".center").css('width', ($('.center').width() - $('.left').width()- $('.right').width()));
};

func();

$(window).resize(function() { func(); });