Wednesday, March 9, 2011

How to add Smart search box for blogger

0 comments
This is CSS search box.this is beautiful design for your blog.
try it,make the attractive blog.


1.Log in to blogger and Go to Design >> Edit HTML

2. Find this tag by using Ctrl+F  </head>

3. Paste below code before the </head> tag.

<style type='text/css'>
#search {
height:34px;
width:auto;
margin-top:10px;
padding:17px 5px 10px 15px;
width:311px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW52mPFZ1UjsARgVpMBfOnfINRdGTDkwNp3vC6f8rlY0t66z7hriKAiz4O_ZLKF4I4Q3Jt4a1SXf9lxkwSX6gfKMu7Z4Fy81f-y-qnB-KFNpJkPgOVL3xfxudL0erUlXa6NegO5r4_GX0W/);
}
#search form {
margin: 0;
padding: 0;
}

#search fieldset {
margin: 0;
padding: 0;
border: none;
}

#search p {
margin: 0;
font-size: 85%;
}

#s {
margin-left:0px;
float: left;
width:231px;
padding: 6px 2px 6px 5px;
background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhby2u_XLVNh2f0mE5yvg8DlTdfaW5JGDPm3PSqVwZd68DIkXZv5jPyMHVD2gl9M5CMOTbdWVN4dC25y5dqfcqZQQeE_CYczRsOCdMrQWzDSt7e7gUWxTXv_aG4LydZRZ0Gtb3H4kg4VWc/s1600/sform.png) no-repeat;
border:none;
font: normal 100% &quot;Tahoma&quot;, Arial, Helvetica, sans-serif;
color:#C6C6C6;
}

#searchsubmit {
width:57px;
float: left;
background:#fff url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_lltj7oIaYehQViZarPrhwURP9OKfUop8P_rhBJ6YEyufk0b-VlrNB6nSTnEw6EmIBC8gPqFDKgJeN6GWDIZm7WoEwmtswkhqydsg2db5XaVh90NL5OBiHu9AUjtcy8hBJ9RYCoZf4dZB/);
border:none;
font: bold 100% &quot;century gothic&quot;, Arial, Helvetica, sans-serif;
color: #FFFFFF;
height:28px;
margin-left:5px;
}

</style>

4. Now save your template.

5. Again Go to Design >> Page Element

6. Click Add gadget and select "HTML/java script"

7.Paste below code.


<div id='search'>
<form id="searchform" action="http://Your site /search" style="display:inline;" method="get">
<input id="s" name="q" type="text" value=""/>
<input id="searchsubmit" value="" type="submit"/>
</form>
</div>

*Replace Your site with your website URL

8. Now save it. you are done.

Leave a Reply

Related Posts Plugin for WordPress, Blogger...