Beautiful Search Box Widget For Blogger

Google Blogger has its own search box widget for their blogs but its design is not very attractive it looks ugly. In this post have discussed about adding custom search box to a blogger blog.

How To Add Search box widget to blogger blog
1. Go to your blogger dashboard and select your blog.
2. Now go to Layout option.
3. Select Add a gadget option.
4. Select HTML/JavaScript widget.
5. In the HTML/JavaScript widget paste code of the search box widget and save the widget.

1. Beautiful Search Box Widget for Blogger



<style>
#search-box {
position: relative;
width: 100%;
margin: 0;
}

#search-form
{
height: 40px;
border: 1px solid #999;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: #fff;
overflow: hidden;
}
#search-text
{
font-size: 14px;
color: #ddd;
border-width: 0;
background: transparent;
}

#search-box input[type="text"]
{
width: 90%;
padding: 11px 0 12px 1em;
color: #333;
outline: none;
}

#search-button {
position: absolute;
top: 0;
right: 0;
height: 42px;
width: 80px;
font-size: 14px;
color: #fff;
text-align: center;
line-height: 42px;
border-width: 0;
background-color: #4d90fe;
-webkit-border-radius: 0px 5px 5px 0px;
-moz-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
cursor: pointer;
}
</style>

<div id='search-box'>
<form action='/search' id='search-form' method='get' target='_top'>
<input id='search-text' name='q' placeholder='Search TechFrost' type='text'/>
<button id='search-button' type='submit'><span>Search</span></button>
</form>
</div>

#4d90fe  – Change this color code to the change the color you desire

2. Metro Style Search Bar for Blogger


<style>
#abt-search-btn {
    background: none repeat scroll 0 0 #359BED;
    border: 0 none;
    border-radius: 0 0 0 0;
    color: #FFFFFF;
    font-weight: 700;
    padding: 10px 20px;
}
#abt-search-box {
    background: none repeat scroll 0 0 #EEEEEE;
    border: 0 none;
    padding: 10px;
    width: 160px;
}
</style>
<form id="searchthis" action="/search" style="display:inline;" method="get">
<input id="abt-search-box" name="q" size="40" type="text" placeholder=" Search... "/>
<input id="abt-search-btn" value="Search" type="submit"/>
</form>
Beautiful Search Box Widget For Blogger Beautiful Search Box Widget For Blogger Reviewed by admin on 04:13 Rating: 5
Powered by Blogger.