Google search form By Emon Khan
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="fixedBox">
<form action="#">
<div class="search">
<span class="pre"><img src="https://i.ibb.co/WWJ1q6f/search-v1.png" alt=""></span>
<input type="search" class="searchBox">
<span class="after"><img src="https://i.ibb.co/fXD1GsL/keyboard.png" alt="" title="Input Tool"></span>
</div>
</form>
</div>
</body>
</html>
CSS
*{
margin: 0;
padding: 0;
}
.fixedBox{
max-width: 500px;
margin: 50px auto;
box-sizing: border-box;
border: 1px solid red;
padding: 30px 20px;
}
.search{
position: relative;
}
.searchBox {
display: block;
padding: 5px 30px;
font-size: 17px;
width: 100%;
border-radius: 5px;
border: 1px solid #ddd;
}
.pre {
position: absolute;
bottom: 7px;
left: 0;
padding-left: 8px;
}
.pre img{
width: 12px;
vertical-align: middle;
}
.after {
position: absolute;
bottom: 7px;
right: 0;
padding-right: 8px;
}
.after img{
display: inline-block;
vertical-align: middle;
padding-left: 10px;
}