JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrapper">
<div id="box1"><bold>BOX 1</bold><br>Is there any way, box2 can stand next to the box 1 without limiting the width of box1. (Repeat)Is there any way, box2 can stand next to the box 1 without limiting the width of box1</div>
    <div id="box2"><bold>BOX 2</bold><br>Is there any way, box2 can stand next to the red without limiting the width of box1</div>
</div>

CSS

#wrapper{
  display: flex;
  height: 150px;
}
#box1 {
    background: red;
    flex:1; /* you can change the width here */
    /* width: 50%; */    
    float:left
}

#box2 {
    background: green;
    flex:1;/* you can change the width here */
    /* width: 50%; */    
    float:right
}

JavaScript

s