JSFiddle - React, Tailwind, and code Playground

by jay_zou

HTML

<div class="wrap">
        <div class="container">
            <div class="content">
                <div class="flex-grow1 flex-basis" style="background-color:red;">flex-basis: 200px</div>
                <div class="flex-grow2" style="background-color:lightblue;">flex-basis:auto</div>
	            <div class="flex-grow3" style="background-color:yellow;">flex-basis:auto</div>
            </div>
        </div>
    </div>

CSS

.wrap {
	        display: -webkit-flex;
	        display: flex;
	    }
	    
	    .content {
	        width: 500px;
	        height: 200px;
	        border: 1px solid #c3c3c3;
	        display: -webkit-flex;
	        display: flex;
	        -webkit-flex-direction: row;
	        flex-direction: row;
	        flex-wrap: nowrap;
	        -webkit-flex-wrap: nowrap;
	    }
	    
	    .flex-grow1{
	    	/*flex-grow: 1;*/
	    	flex-grow: 1
	    }
	    .flex-grow2{
	    	flex-grow: 1
	    }
	    .flex-grow3{
	    	flex-grow: 1
	    }
	    
	    .flex-basis{
	    	flex-basis: 200px;
	    }