The search box on the blog or website is the most important thing, so why not change it to the different style According to template design.
I will explain how to add stylish search box in blogger.
How to add search box in blogger
Nothing is complicated just copy and paste the code.
Layout >> Add a Gadget >> HTML / Javascript.
Layout >> Add a Gadget >> HTML / Javascript.
Just copy the code of search box that suits you and past it into >> HTML / Javascript.
1 - The Black button and Search Symbol on box.
<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/AVvXsEgxofRH8m1bAag56Goy9NEnVB91FyH5HXxIqnRg-Nyi2rNjW1f9_-Qi3obGa2pS5IQBGNnEtWN3Sv6_2JsaL08jnqTm43s-9fJ1PJpg4p8ePwUeJIELFKJtc0fItLSz-EycMuCUskbS8yKd/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>
2 - The Black Arrow Shaped Search Button.
<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/AVvXsEgxofRH8m1bAag56Goy9NEnVB91FyH5HXxIqnRg-Nyi2rNjW1f9_-Qi3obGa2pS5IQBGNnEtWN3Sv6_2JsaL08jnqTm43s-9fJ1PJpg4p8ePwUeJIELFKJtc0fItLSz-EycMuCUskbS8yKd/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/AVvXsEiINg8U2_OMhKFf1GBEY2eiBvXd19ppVFArLNiv_Okh6LeU0ffPSWCPQgqydk7adyl6N5320iiSYPuiXq0TEDPtD5RzSc-Saaalm4uK7arDsAS8pyOoWCaIPoONT5fNu8AjOGB63iCgPO0P/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>
3 - The Blue button with rounded ends.
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw7d0XG6PudIi57XAMJTHgobsxdH0Xz32BTRVm_SGkfc9ZIPirObmfKEEwzHG42di2mZvHsKJZaiOB-Bc3ErBTDPmnlM102cn3K0PYy4vkBXlGFBckJff_RCPd5cVD_FYAc2aZw5_Sa4WP/s1600/searchbar.png) no-repeat;
width: 208px;
height: 29px;
}
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: transparent;
margin: 3px 0px 0px 20px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
color: #828282;
width: 70%;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCB044R0iLc6tUTnRa7mi75aQjzzYuCbm6Ijy1YNJmLYefgNkC9kcTRs2LHYj-nf4n0GphXQcHHnu-I9ScF_wN0pECpDgsdFp20Hi54N8nJnedcKZhqjsB_xA0IPF8EVLC7RTEeaYOVF7U/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-left: 10px;
margin-top: 4px;
width: 21px;
height: 22px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSugDRNevBNHbQJWli89PyqftGsC_o1ezhZxZ8EEgycIlU_8kExoenMVmTeHKza0DrZQ_y-pP9JfGmgdS2QFGdk9DXXQWbAXDYJZBbgc_swHVNScJUnZ-hgiaBkTX3OPxhsyBakG-F6-3W/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSugDRNevBNHbQJWli89PyqftGsC_o1ezhZxZ8EEgycIlU_8kExoenMVmTeHKza0DrZQ_y-pP9JfGmgdS2QFGdk9DXXQWbAXDYJZBbgc_swHVNScJUnZ-hgiaBkTX3OPxhsyBakG-F6-3W/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
4 - The Green button with rounded ends.
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-fEiHEXEmNOhK6aHGWeXdlXGGWdicy52pvrsWLlIhUTihuNY93EJx4L6dW_x5yE-_Qf2LoAD-r6nUerE3DQueTVxSKrn_YUe7kSpBb2xLTChmexWPSSQvILSmN_8FZeTZrqY4Jv6J3sMn/s1600/search-box.png) no-repeat;
height: 27px;
width: 202px;
}
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: transparent;
margin: 0px 0px 0px 12px;
padding: 5px 0px 5px 0px;
border-width: 0px;
font-family: "Arial Narrow", Arial, sans-serif;
font-size: 12px;
font-style: italic;
width: 77%;
color: #828282;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbeDt53Qj0ztmDhDkF-GwaSHygV1WUqyr1ePhUo-kD9RTZH0olcc7IqvpprqXNtU1Kr4VI-D-Xlk6a22tCQyKQ6vUNjty6Ql8Rt69vCaU237Cm7tAy7JR6A7kBYMs1OTUl5K75HcDmOG-U/s1600/search-button.png) no-repeat;
border-width: 0px;
cursor: pointer;
width: 30px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVlv6lkeDToZChGjicaSFBgrp7xVV-kjJEljRyw4m6pUkKz0NVmkRJKc9hT5G5Ux0ywdwxjBqIDWoqCBsiU1G5jlZCYagKGaiXijBSY1TT6wBnouswUPzyhJvvL2Gn1V3JYtIuAC4OVF8T/s1600/search-button-hover.png) no-repeat;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="search..." />
<input id="button-submit" type="submit" value="" />
</form>
5 - The Black improper style search box.
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuAexIzE41VJFe2LTVneJ-EfrQM-y9DQGWI2Nfz__KS0-LDdfKynKr_UUEpDkC1MizGeWd9GJnm3DXVzmTDrkazIYxR06tsUOL1_IA5jVeHa2NkBVx5aTz-atFc5Afe_TCOjeqqKCkvvcg/s1600/search-box1.png) no-repeat;
width: 250px;
height: 65px;
}
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: transparent;
padding: 5px 0px 5px 20px;
margin: 10px 15px 0px 0px;
border-width: 0px;
font-family: "Brush Script MT", cursive;
font-size: 12px;
color: #595959;
width: 65%;
font-weight: bold;
display: inline-table;
vertical-align: top;
}
#button-submit {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM0ke1L87SCMSpw6jLhMbUgFNWE907ik7Kzt8eb7_K9ZM1nGJOVc67NhET71iaC0bcO9PpPf_m9p-W7oQklCIigd3YTV8kxW_UR8jEevG9SLXDY5bz2OG7ZlNeBnSkFLSfoSaIBEMWZE8s/s1600/magnifier.png) no-repeat;
border-width: 0px;
cursor: pointer;
margin-top: 10px;
width: 19px;
height: 25px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiath4qrPBcTibJRCwg738L0pZPvOduAeHoCNWdsslZlHW82etInFqoHyzO_iohp4i_4juawrXmrM-zH0B9BfU6fU57Q7J2vS1Mmt45PfYPjNiquWJoRQjO0L8h61SrTCOOzxRuY8NZ7Wjc/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiath4qrPBcTibJRCwg738L0pZPvOduAeHoCNWdsslZlHW82etInFqoHyzO_iohp4i_4juawrXmrM-zH0B9BfU6fU57Q7J2vS1Mmt45PfYPjNiquWJoRQjO0L8h61SrTCOOzxRuY8NZ7Wjc/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search" autocomplete="off">
<input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />
<input id="button-submit" type="submit" value="" />
</form>
6 - The Black rough style search box.
<style>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW77ZJtfy1mXzEXu-8yoK_a1TZjDlfq2am8R-1npJArvvndJHVLNg4nT_f9Ma6iQQ08oSzQAi1EUkvD-VIWUXt44VZFdTVSQGKgJZDvQ4s8s2-JmTG1k9oOV2etlUWRXNKL3EV2s06pVIY/s1600/search-box.png) no-repeat;
}
#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: transparent;
border: 0px;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
font-size: 14px;
color: #f2f2f2 !important;
padding: 10px 35px 10px 20px;
width: 220px;
}
#searchbox input[type="text"]:focus {
color: #fff;
}
#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjygrv6Kd0WRamcWRfUWcvgINPgnk6jNE1zTs5JrNitXupF0wrnqMKYhgVl3N_kMVGMBdWtkaOmSDKzWeF7t9JSEzLFBOEH214A4ntS4yYiPKLiONpEwcCFsaLjq7GaNMRY6Vc3Dmqxs3bn/s1600/search-icon.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 40px;
height: 50px;
}
#button-submit:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmgf2JiiOBpOyb0pgHEl_o3t2o2LNDfvaFlUAzytR8kdBTW27gpDUeLiWalQmAsC5zEXMLgnIHJd58hF0fj2YIRYsr5yxB6Wa-Ut7MbHVVyHOSdg6Vlgpnq7QeLdzoZuqE-E1NtoVvCbT/s1600/search-icon-hover.png);
}
</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>







0 comments:
Post a Comment