JSFiddle - React, Tailwind, and code Playground
HTML
<div class="content">
<h1>Your perfect domain starts here.</h1>
<form>
<input type="text" name="domain" placeholder="Search for a domain here.">
<input type="submit" value="Search">
</form>
</div>
CSS
.content {
height: auto;
margin: auto;
overflow: hidden;
max-width: 1100px;
}
.content input[type=text] {
float: left;
outline: none;
height: 50px;
width: calc(100% - 100px);
align-self: center;
border: none;
padding: 0 0 0 10px;
box-sizing: border-box;
background-color: white;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.content input[type=submit] {
float: right;
color: white;
height: 50px;
width: 100px;
border: none;
font-size: 14px;
text-transform: uppercase;
background-color: #4285f4;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.content input[type=submit]:hover {
cursor: pointer;
background-color: #2a75f3;
}
<!DOCTYPE html>