Showing posts with label Search Box. Show all posts
Showing posts with label Search Box. Show all posts

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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB_Xpf6h6MRugxUys7r3P6SV8NwAqTIb96E3v5BXqr0vQVM_V0Ji3ulHJq3lmx8R3jgoY8oI9e9GKysnxvAfcGqZl1e_dRuuwx9hevWvy-eLlUtLSG0suAAyLsnQNJrnGHDqRcwqNokzo/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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK96t1WLfuBUV9RSfrRP3qzaKQcDBjbxHcehEb-c3spOSgJG0orQRIFUWRGXz2KFjSMU2kZZrLqD3quF8a910vbnzy52ZQE45yJ5NgLfrbHsl2GF4gUHOtVE-F0dsprnz_lrPtbbKcOGo/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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK96t1WLfuBUV9RSfrRP3qzaKQcDBjbxHcehEb-c3spOSgJG0orQRIFUWRGXz2KFjSMU2kZZrLqD3quF8a910vbnzy52ZQE45yJ5NgLfrbHsl2GF4gUHOtVE-F0dsprnz_lrPtbbKcOGo/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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB_Xpf6h6MRugxUys7r3P6SV8NwAqTIb96E3v5BXqr0vQVM_V0Ji3ulHJq3lmx8R3jgoY8oI9e9GKysnxvAfcGqZl1e_dRuuwx9hevWvy-eLlUtLSG0suAAyLsnQNJrnGHDqRcwqNokzo/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

 

Copyright @ 2013 EgyTricks.

Designed by Vikash | EgyTricks