JSFiddle - React, Tailwind, and code Playground

by vaibhav saxena

HTML

<div class='parentContainer'>
  <div class='child1'>child1</div>

  <div class='child1'>child1</div>

  <div class='child2'>child2</div>

  <div class='child3'>child3</div>
</div>

CSS

.parentContainer{
  background-color:#2a2a2a;
  width: 550px;
  border:1px dotted #00FF00;
  /* overflow: hidden; */
  box-sizing:border-box;
}

.child1, .child2, .child3{
  display: inline-block;
  height: 100px;
  border: 3px solid #2a2a2a;
  box-sizing:border-box;
  text-align: center;
  line-height: 100px;
    width: calc( 25% - 4px);  
}
.child1{
  background: red;
  border-right: 1px solid #000;
  
}

.child2{
  background:pink;
   border-right: 1px solid #000;
   
   max-width:50%;
}
.child3{
  background: yellow;  

}