Friday, March 29, 2013

Stylish Social Media Widget with Search Box

In this  post  im gonna  explain  how to add social media  widget with light search box for your blog. So, this include two gadget.  social profiles  icons and search box. Im using css3 and HTML for this widget. you can take a look at in demo page.

Stylish+Social+Media+Widget+with+Search+Box

1. Log in to blogger account and Click drop down.
blog-post-option
2. Now select "Layout" Like Below.

3. Click Add Gadget and select 'HTML/Javascript

4. Paste  below code.

<style>
#btrixwidget{width:307px;
padding:0 0 5px 0;
border:1px solid black;}

#btrix-searchbox {
    border-radius: 5px;
    background: URL(http://4.bp.blogspot.com/-QfnjnEenODg/T_2KaW7lAoI/AAAAAAAACC4/asD98X7USVE/s1600/blue.png) no-repeat scroll center center transparent;
    width: 307px;
    height: 50px;
    disaply: block;
}
  
form#btrix-searchform {
    display: block;
    padding: 9px 16px;
    margin: 0;
}
  
form#btrix-searchform #s {
    padding-left: 24px !important;
    padding: 7.5px;
    margin: 0;
    width: 198px;
    font-size: 16px;
    font-family: georgia;
    font-style: italic;
    color: #666666;
    vertical-align: top;
    border: none;
    background: transparent;
}
  
form#btrix-searchform
#sbutton {
    margin: 0;
    padding: 0;
    height: 40px;
    width: 74px;
    vertical-align: top;
    border: none;
    background: transparent;
}
</style>

<div id="btrixwidget"><center>
<a href="http://twitter.com/bloggertrix" target="_blank" wrc_done="true"><img src="http://2.bp.blogspot.com/-MnDV3U4XtYc/UVWk-A2SljI/AAAAAAAAAco/pK4NWaYNX28/s1600/btrix-twitter.png" alt="" title="twitter" width="62" height="78" class="alignnone size-full wp-image-6249"></a>

<a href="http://www.facebook.com/bloggertrix" target="_blank" wrc_done="true"><img src="http://4.bp.blogspot.com/-yh4hQ75YVSE/UVWk9Lu2wnI/AAAAAAAAAcQ/Z68YzzPZhp0/s1600/btrix-facebook.png" alt="" title="facebook" width="62" height="78" class="alignnone size-full wp-image-6248"></a>

<a href="http://feeds.feedburner.com/bloggertrix" target="_blank" wrc_done="true"><img src="http://3.bp.blogspot.com/-sKR8lFv_8Is/UVWk9HX2zfI/AAAAAAAAAcY/vCBJEXl-HhM/s1600/btrix-rss.png" alt="" title="rss" width="62" height="78" class="alignnone size-full wp-image-6251"></a>

<a href="http://au.linkedin.com/username" target="_blank" wrc_done="true"><img src="http://1.bp.blogspot.com/-C5FNB8oQEXU/UVWk9BJoIgI/AAAAAAAAAcU/mbwQ1PZyV8U/s1600/btrix-linkedin.png" alt="" title="linkedin" width="62" height="78" class="alignnone size-full wp-image-6250"></a>

<div id="btrix-searchbox">
    <form id="btrix-searchform" action="/search" method="get">
        <input type="text" id="s" name="q" value="Search..." onfocus='if (this.value == "Search...") {this.value = ""}'
        onblur='if (this.value == "") {this.value = "Search...";}' />
        <input type="image" src="http://img1.blogblog.com/img/blank.gif" id="sbutton"
        />
    </form>
</div>
</center>
</div>



Replace Bloggertrix with your twitter profile
Replace Bloggertrix with your facebook profile
Replace Bloggertrix with your feedburner profile
Replace Bloggertrix with your linkedin profile

7. Now save your HTML/Javascript'. You are done.

1 comment: