-

22 July 2015

Metro Style Search Bar for Blogger

VM | 9:47 am |
As Microsoft has enrolled the new Windows 8 Metro Style OS, a lot of change in the designing section of the blogging community has been seen. Now a days people are changing their template/theme and giving them a Metro look. If you are one of those people here is a fabulous widget for you - A Metro Style Blogger Search Bar.

Its CSS has been compressed to make it load faster. The bar looks very cool and I personally like it. Well there is no need to demo for this search bar, you can see how this search bar looks in the above image.

If you think that you need to make some changes in the code or the above button is not working for you then you may use this method.
Go to Blog Title → Layout → Add Widget → HTML/JavaScript. Paste the below code.

<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=" Type! :D "/>
<input id="abt-search-btn" value="Search" type="submit"/>
</form>

Now save the widget and save the template. If you want to increase/decrease the text box width change 160px with your desired width.

You are done now. Now you and your visitors can see this awesome Metro style Search bar in your blog.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Subscribe Updates, Its FREE!