While browsing over the internet you may have seen all the sites having a Search Box. It is rule to have a search box for giving better content easily to readers. You may have tried to adding it but it may be not matching with your template design. Let us provide you some beautiful search boxes, except these you may add your own which suites best to your template design. Here we will provide you Two most beautiful Search boxes. Just copy & paste the code as suggested. Let's start making these widgets.
Search Box 1. If you want your search box to look like this then use below code
Here is code for this>>>
<style>
#searchbox {
background: #d8d8d8;
border: 4px solid #e8e8e8;
padding: 20px 10px;
width: 250px;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq3HCldqg1PZU3oLw9UdB5G5yrydpMB_609fJKk0vBBHnjJRvYFiiGcHPxb3L5Q7Kbx0IEVxjXp1IxZZPlr6f2JpvOHsGGbckoE8ijD7v5FJSBnE8VQcYOQwFSI8NisanuNrYjIkJCJCMS/s1600/search-dark.png) no-repeat 10px 6px #fff;
border-width: 1px;
border-style: solid;
border-color: #fff;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #bebebe;
width: 55%;
padding: 8px 15px 8px 30px;
}
#button-submit {
background: #6A6F75;
border-width: 0px;
padding: 9px 0px;
width: 23%;
cursor: pointer;
font: bold 12px Arial, Helvetica;
color: #fff;
text-shadow: 0 1px 0 #555;
}
#button-submit:hover {
background: #4f5356;
}
#button-submit:active {
background: #5b5d60;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search">
<input name="q" type="text" size="15" placeholder="Type here..." />
<input id="button-submit" type="submit" value="Search" />
</form>
Search Box 2. If you want your search box to look like this then use below code
Here is code for this>>>
<style>
#searchbox {
width: 240px;
}
#searchbox input {
outline: none;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq3HCldqg1PZU3oLw9UdB5G5yrydpMB_609fJKk0vBBHnjJRvYFiiGcHPxb3L5Q7Kbx0IEVxjXp1IxZZPlr6f2JpvOHsGGbckoE8ijD7v5FJSBnE8VQcYOQwFSI8NisanuNrYjIkJCJCMS/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2;
border: 2px solid #f2f2f2;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #6A6F75;
width: 160px;
padding: 14px 17px 12px 30px;
-webkit-border-radius: 5px 0px 0px 5px;
-moz-border-radius: 5px 0px 0px 5px;
border-radius: 5px 0px 0px 5px;
text-shadow: 0 2px 3px #fff;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#searchbox input[type="text"]:focus {
background: #f7f7f7;
border: 2px solid #f7f7f7;
width: 200px;
padding-left: 10px;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibAqnsBnT1w9S-85LMXi6KDE8MJzHv8-9xDYAMXeom38UyvdE76MY-JMui01zO8drm1evN5yTQ9Ww_qEFbNUFcUFjizNrHZHOJAT5M8eqINB57KRZsIC9HrygwXtlMA9Jgodb-z9wN-gAr/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 45px;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>























