JSFiddle - React, Tailwind, and code Playground

by dife

HTML

<header>
   <div class="logo"></div>
    <div class="menu">
      <nav>
        <a href="#">Link 1</a>
        <a href="#">Link 2</a>
      </nav>
    </div>
    <div class="pesquisa">
        <form action="#">
          <input type="text" name="search" placeholder="Procurar"/>
          <input type="submit" value="Pesquisar"/>
        </form>
    </div>
</header>

CSS

header{width: 100%; height: 50px; background: blue; position: relative; display: table;}
.logo{
  width: 200px;
  height: 50px;
  background: url(https://telltale.com/images/stores/store_steam_white.png) red no-repeat;
  display: table-cell;
}

.menu{
  width: 200px;
  height: 50px;
  background: green;
 display: inline-table;
  line-height: 50px;
  text-align :center;
}

.pesquisa{
  width: 300px;
  height: 50px;
  background: yellow;
  display: inline-table;
  position: absolute;
}

.pesquisa form{
  position: relative;
  top: 15px;
}