सर्च बटन में इनपुट फील्ड और सबमिट बटन साथ-साथ होते हैं। बटन में Font Awesome सर्च आइकन होता है। फ्लोट लेआउट से 80/20 चौड़ाई विभाजन, नीला बटन, होवर पर गहरा नीला।
उदाहरण
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
* { box-sizing: border-box; }
input[type=text] {
padding: 12px; font-size: 17px; border: 1px solid grey;
float: left; width: 80%; background: #f1f1f1;
}
button {
float: left; width: 20%; padding: 12px;
background: rgb(14, 81, 204); color: white;
font-size: 17px; border: 1px solid grey; border-left: none;
cursor: pointer;
}
button:hover { background: #1b11a5; }
</style>
</head>
<body>
<h1>Search button example</h1>
<form>
<input type="text" placeholder="Search.." name="search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</body>
</html>
आउटपुट
उपरोक्त कोड निम्नलिखित आउटपुट उत्पन्न करेगा:

मुख्य बिंदु
- फ्लोट लेआउट - इनपुट 80%, बटन 20%
- बॉर्डर-लेफ्ट: none - बटन पर बाएं बॉर्डर हटाकर सीमलेस लुक
- Font Awesome सर्च आइकन - fa fa-search क्लास
- ग्रे इनपुट बैकग्राउंड - #f1f1f1
- नीला बटन - rgb(14,81,204), होवर पर #1b11a5