In this post, we learn how to add customized CSS3 search box to blogger. With a custom search box in your blog, your readers can easily s...
In this post, we learn how to add customized CSS3 search box to blogger. With a custom search box in your blog, your readers can easily search for and find anything on your blog. For blogs that have hundreds of posts, it might be very difficult for readers to find a particular post without the search box, even if they go through the archive. Also, the analytics from searches performed on your blog lets you know what your readers really want. This help your readers find what they need on your blog quickly by adding one of the following styles below for the customized search box gadget for blogger.
How to add Custom Search Gadget to Blogger
- From your Blogger Dashboard
- Go to Layout
- Now Add a Gadget and select HTML/Javascript.
- Copy any of the codes below code you like and paste it into the text field.
<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/AVvXsEivKSRDNpKcSdHrBpwsBFq7UuDwXenIob8Kt-z5aYcWN0KGAxKcInDwI8T5V4tVD7JyUS0ysBty7oFbg87zJV2R56EoNeFlD7gxJe4FJuSOuQOOqukN7W7snuvXtzHmnmta8YO-FzzG7_cV/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/AVvXsEiYfyW4xEdqtx-SL0tWYczxLsJ7D2kLYLG2eKAYh7piwQK2DuC2W9X_EJRM9V7TikPTtPzTtr8D5O79tFcu_GAwfIS3JRsmpkkQI2x7seNVaH0pgPTeoJuXo3qS1lrEwsBv6SCE71RdwgSa/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 45px;
}
</style>
<form action="/search" autocomplete="off" id="searchbox" method="get">
<input name="q" placeholder="Enter keywords here..." size="15" type="text" />
<input id="button-submit" type="submit" value=" " />
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWtUwZcshg25i2mk6B-a28RIevZjF5QWEF78gLel77K0SCPm2FQ1NP-Rp6u54ivXiiCTq-47fwtUMZIcUX_LRqduH2qx50Xq2qp0dTzA4B3vyK8R8tN8WFulN2vElYR3dooIxid3f0rMVC/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/AVvXsEgNkJU_qaAqhuTfWXkCcpGPUGsGy9NILtulRBVnBtzaVh1c-BBTdjQQ-xEzTQwQkKWhRjyHwJhwwH_I4iRKNw0KJEsoYleZjNV-hVQZTJ-kGxfLajcAjuP4nGOrC_vc2wgQ9Tiok1xBhcSB/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/AVvXsEgvIcX4nVUPeuz5XuxBuP7GbtnSq2tyOY4Dwgdl59_Eg6T9DJ4rzgnFf6AzJsV_7lDh9boBVrgAtMWbHKY6GRgSC0wZvx9ZeYcNflT5qE3Chldla7JO2Lpt_Fga5GLc6eFbp9Ow4FUVVCSR/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvIcX4nVUPeuz5XuxBuP7GbtnSq2tyOY4Dwgdl59_Eg6T9DJ4rzgnFf6AzJsV_7lDh9boBVrgAtMWbHKY6GRgSC0wZvx9ZeYcNflT5qE3Chldla7JO2Lpt_Fga5GLc6eFbp9Ow4FUVVCSR/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form action="/search" autocomplete="off" id="searchbox" method="get">
<input name="q" placeholder="search..." size="15" type="text" />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-upw4EZhNhmA2ZV3HK2oSs2RiSyQE7Lk1ThrPY-JfjxWQq3U0rsPL3tePqPMKZ85lVlXP8bW_d0GOevTmvZ_eOerezWkpZWSM9Wlf54NkVtKSitktJWkbSFsc7Q4fXWb5AsA6ww_zEAxL/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/AVvXsEj7xnftzHxKlvl_5pgmZYP5d7QBJNskxQNVgMxoBdi0xIJnN4LhvSmY5HGfuaVM7qQ7LptgtoO6w7mssn1B4GUr-1Bbv2udHzTJUVsr-zcyKw6HGt5P6uepb0ip6x2mbZjNMR3mA8BKWfvX/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/AVvXsEjviXqiJew6hdPhj-dx475sSnv4Eedesk0gInedCR4-tJO-RtfMpoqyO3DMod8-58gOek6pNhMmYGDgnxYIi62qlt3iR_jCvVhE0nO_KgVF31uTX-V_fkeDL_Zk4TfSVD_WYZ1IrAOV-San/s1600/search-button-hover.png) no-repeat;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form action="/search" autocomplete="off" id="searchbox" method="get">
<input name="q" placeholder="search..." size="15" type="text" />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbeUxBoJziC5LEwQWGZ8ZVyFYTwajGeL_nEK7K17Cs0_SNNMr0JPESaRR9UDi9wTiFWJtZHFTBbuRAKzo4gsSZ04160nh4bIFgL2XrWEpihF1Iwvd_dM3Y52fBZBV_joiRyZDj-rPecAS_/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/AVvXsEgkMNK6RWSac-A7hv4nbRQhKD0S5JTobaBzMyf_jf_gNbwzOiXC8A8wS0Dw_-1-AE_iLjCm1Qa2dvG53VxHLf1y7UaF4dieh3nUaHhK1FrG57qwCMPBl6Es1hjNMZmE_7msy3ec-YH_Qpl_/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/AVvXsEhamTxYzlsU6bzI79CIVUNNHaTaXG5TsFjqtaL4m5GnznaWo-tcuwTbh2ccy_we8A4WvpnHETHdPxcGRr0fnEdlSatQUWzbecDi-YRTS07lYTfJSDTpW7yHfkGx62KVgKEf2f2AhsHlXvo9/s1600/magnifier-hover.png) no-repeat;
}
#button-submit:active {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhamTxYzlsU6bzI79CIVUNNHaTaXG5TsFjqtaL4m5GnznaWo-tcuwTbh2ccy_we8A4WvpnHETHdPxcGRr0fnEdlSatQUWzbecDi-YRTS07lYTfJSDTpW7yHfkGx62KVgKEf2f2AhsHlXvo9/s1600/magnifier-hover.png) no-repeat;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form action="/search" autocomplete="off" id="searchbox" method="get">
<input class="textarea" name="q" placeholder="Search here..." size="15" type="text" />
<input id="button-submit" type="submit" value="" />
</form>
<style>
#searchbox {
width: 280px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwRXB8PuMM5c65y3BroxOXteD8ogJxZXI6p39F-0B8LWv23RbYeXRkne2PNa3OK8okjg5EDKq1WE7Ooz3NL5yHnyGi5_GUu6O1Zfr_5J4mZ-A0cDI0MlBAMBHoArc5SNgkYdz87y6MIJNe/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/AVvXsEjNyJanM0jQApisZNvXLrq7rhEapoLmHeJtqd8h0As3aEdghfT_J2JM9EoGrPSGFM381gxD7pQZfTG9B0tfQZSfJc1__kwfo39xbSYCE7IGGN828ZdRR8ovm6V8tkxB9rcj-e523uHJvOJ5/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/AVvXsEhPTYRF2ODYSHIxviQ-IW_VypzB2wU7dL-gUk8TekdMnVB87ox5J-KYnSmn5q1mbpIgYmTupfOMIVpzsztJy4OlScJN2oNF6Jna0A6KfOnXmFzvXC5seuf6EymQeeyx-bmviyTIBnaKt9Mr/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>