Tuesday, February 19, 2013

How to add a search box to your blog



Adding Search Box to Blogger



Search Box is one of the most used tool for navigating of any website. It will bring the opportunity to your readers to find any topic within your blog quickly. Though Blogger do provide a default search box widget but unfortunately it does not provide accurate search result all the times. Today I will show you how to add a nice search box in your blogger. just follow the simple step.











Go to your Blogger Dashboard >> Select Layout >> Add a gadget >> Select HTML/Java Script >> Paste the code given below within the Java Script >> Save it. You are done. As simple is that.






Obviously you can customize the size of the search box. Just find width and height section and change it according to your need.



<style type="text/css"> #searchbox


ckgr { b aound: #eaf8fc;


mage: -moz-linear-gradient(#fff, #d4e8ec);





background-

background-


iimage: -webkit-gradient(linear,left bottom,left top,color-stop(0, #d4e8ec),color-stop(1, #fff)); -moz-border-radius: 35px; border-radius: 35px; border-width: 1px;








width: 270px;






border-style: solid; border-color: #c4d9df #a4c3ca #83afb7; height: 35px; padding: 10px; overflow: hidden; } #search, #submit {


ght: 23px;





w

float: left; } #search {padding: 5px 9px; he iidth: 180px; border: 1px solid #a4c3ca;


helvetica; font: normal 13px 'trebuchet MS', arial,


background: #f1f1f1;


-moz-border-radius: 50px 3px 3px 50px; border-radius: 50px 3px 3px 50px;


0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);





-webkit-box-shadow: 0 1px 3px rgb

-moz-box-shadow: 0 1px 3px rgba(0 ,a(0, 0, 0, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 1);


set, 0 1px 0 rgba(255, 255, 255, 1); }

#submit { background: #6cbb6b;


backgrou box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) i nnd-image: -moz-linear-gradient(#95d788, #6cbb6b);


ar,left bottom,left top,color-stop(0, #6cbb6b),color-stop(1, #95d788));





-moz-border-radius: 3px 50px 50px 3px;

background-image: -webkit-gradient(lin e border-radius: 3px 50px 50px 3px; border-width: 1px; border-style: solid; border-color: #7eba7c #578e57 #447d43;


0 rgba(255, 255, 255, 0.3) inset;





box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0

-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1p


xrgba(255, 255, 255, 0.3) inset;

No comments:

Post a Comment