Dec 4, 2012

Add CSS Search Box to Blog

Search Box in any Site or Blog has very important role it not only help the visitor but also help to increase  traffic.many People use this widget tool to find their desire content on that blog.so today i am going to share three Professional Search Box Code with you one by one.use my below some simple steps ...
  • Login to Blogger  >> Click on drop down >> Now select "Layout"
  • Now you will see "Add a Gadget" button click any of them
  • A new window will open .Scroll some down until you see " HTML/JavaScript" Button.
  • Click on " HTML/JavaScript" Button ,leave the Title blank and Put the below code in Content and then after click on save button.

Widget Code For Search Box

Widget Code For Dark Search Box

<style>
#dark #search {
 

}

#dark #search input[type="text"] {
    background: url(http://2.bp.blogspot.com/-FV1ILaZlCwM/UL10p9OBzkI/AAAAAAAAGcs/u7FnTmL4EKo/s1600/search-dark.png) no-repeat 10px 6px #444;
    border: 0 none;
    font: bold 12px Arial,Helvetica,Sans-serif;
    color: #777;
    width: 150px;
    padding: 6px 15px 6px 35px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
    }

#dark #search input[type="text"]:focus {
    width: 200px;
    }
</style>
<div id="dark">
<form method="get" action="/search" id="search">
  <input name="q" type="text" size="40" placeholder="Search..." />
</form>
</div>


Widget Code For White Search Box


<style>
#white #search {


}

#white #search input[type="text"] {
    background: url(http://2.bp.blogspot.com/-GOn5C47SlEE/UL10qeX1DAI/AAAAAAAAGcw/AsRxdnyaYXg/s1600/search-white.png) no-repeat 10px 6px #fcfcfc;
    border: 1px solid #d1d1d1;
    font: bold 12px Arial,Helvetica,Sans-serif;
    color: #bebebe;
    width: 150px;
    padding: 6px 15px 6px 35px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
    }

#white #search input[type="text"]:focus {
    width: 200px;
    }
</style>
<div id="white">
<form method="get" action="/search" id="search">
  <input name="q" type="text" size="40" placeholder="Search..." />
</form>
</div>


Widget Code For Dark With White Hover Effect Search Box


<style>
#apple #search {

}

#apple #search input[type="text"] {
    background: url(http://2.bp.blogspot.com/-GOn5C47SlEE/UL10qeX1DAI/AAAAAAAAGcw/AsRxdnyaYXg/s1600/search-white.png) no-repeat 10px 6px #444;
    border: 0 none;
    font: bold 12px Arial,Helvetica,Sans-serif;
    color: #d7d7d7;
    width:150px;
    padding: 6px 15px 6px 35px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
    }

#apple #search input[type="text"]:focus {
    background: url(http://2.bp.blogspot.com/-FV1ILaZlCwM/UL10p9OBzkI/AAAAAAAAGcs/u7FnTmL4EKo/s1600/search-dark.png) no-repeat 10px 6px #fcfcfc;
    color: #6a6f75;
    width: 200px;
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    }
</style>
<div id="apple">
<form method="get" action="/search" id="search">
  <input name="q" type="text" size="40" placeholder="Search..." />
</form>
</div>

Now All Done...


NOTE:-DON'T COPY THIS CONTENT WIHTOUT LINK-BACK THIS POST

Subscribe Updates, Its FREE!

9 comments:

  1. Wow! It's amazing search box for blogger. Thank you so much.

    ReplyDelete
  2. Thanks, it was really good. I used the second one on my blog

    ReplyDelete
  3. thanks man your tutorials are very much helpful for us

    ReplyDelete
  4. fantastic and beautiful well done hope you have more code to help make beautiful blogs

    ReplyDelete
  5. thanks for this wonderful search box.I want to ask you of it is possible I want the background of your date in the post.please accept my request and visit my blog too latest games and software

    ReplyDelete
    Replies
    1. that of liking this search box and Sorry for your question don't understand what you ask ...pls ask simply

      Delete
  6. great job, with your search box i can reach 92 in the new pagespeed. Congratulations, great blog and great job.

    ReplyDelete

 

Copyright @ 2013 EgyTricks.

Designed by Vikash | EgyTricks