[Solved] How to achieve this design by html and css with flex property or something else [closed]


This code may work for you.

nav{
  display: flex;
}
.box-1{
  background-color: green;
}
.box-2{
  background-color: red;
  flex-grow: 1;
}
<nav>
  <span class="box-1">Your Logo Text</span>
  <span class="box-2"></span>
  <button>Button 1</button>
  <button>Button 2</button>
</nav>

solved How to achieve this design by html and css with flex property or something else [closed]