JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

HTML

<div class="container">
    <div class="logo-wrapper">
        
    </div>
    <div class="search-wrapper">
        <input id="query" />
        <span class="thing"></span>
    </div>
</div>

CSS

.container {
    width: 500px;
    margin: 0 auto;
}
.container .logo-wrapper {
    min-height: 100px;
    width: 300px;
    margin: 0 auto;
    background: red;
}
.container .search-wrapper {
    position: relative;
    height: 30px;
}

.container .search-wrapper #query {
    border: 1px #555555 solid;
    padding: 5px 20px 5px 5px;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}
.container .search-wrapper .thing {
    position: absolute;
    display: block;
    height: 20px;
    width: 20px;
    top: 5px;
    right: 5px;
    z-index: 3;
    background: blue;
}