Custom Web Search Box
This tutorial will show you how to create a custom web based search box for use on a website. For this tutorial we will apply a few simple techniques using Adobe Photoshop.
Start off with a new document 540×125 pixels with a white background.

Create a new layer. Using the rounded rectangle tool with a 10px radius, create a selection similar to the one below and fill it with black #00000.

Now create a new layer and add a circle. Hold down the control key to make a perfect circle, and then drag from the top of the box to the bottom, then side ways. I will use red for this so that it is easy to see.

Now select the move tool and nudge the layer left using the arrow keys until you get something that looks like this.

Now you need to merge the layer with the rounded rectangle layer. To do this, simply select the layer with the circle and press ctrl+ e. You should end up with 2 layers, the background and the shape you created.

Now we need to apply some blending options to give the shape some style. Right click on the Layer with the shape and select blending options.

Now apply the following blending options to your shape.
Gradient Overlay:

Here is the gradient we used:

Drop Shadow:

and Stroke:

When you are finished with all the effects click the ok button to apply them. Your image should look something like this.

Now we will have to add our search box. Create a new layer. Use the rounded rectangle tool with white as your foreground color and a radius of 6px to create a shape like below.

Apply the following blending options to your search box.
Inner shadow:

Click ok to apply the effect. Your image should look like this now.

Next we will add the search button. Create a new layer. Using the same rectangle tool (radius 6px, color #ffffff) make a selection like below.

Apply the following blending options to the search button:
Gradient Overlay:

Here are the gradient settings:

Inner Glow:

Apply the changes. Your image should now look like this.

Now we need to make the button look glossy. Ctrl + click on the layer to select the button. Then using the rectangle marquee tool, press and hold alt then drag the shape over the bottom of the rectangle to select only the bottom of the button.

On the Photoshop Menu, go to Select > Modify > Contract. Contract the selection by 2px and press ok. Create a new layer then fill the shape with white #ffffff by pressing alt + backspace. Your button should now look like this.

Now adjust the opacity of the white layer to 55%.

Your button should look like this

Type the word search on top of the box using the text tool with Arial Black 18pt white as your font. Apply a stroke to the text layer.

Apply the effect and you should have something like this.

Now we need to add a logo. Create a new layer and make a selection with the elliptical marquee tool. Fill it in with any color.

Now apply the following blending options that you did for the search button. The easy way to do this is to right click on the search button layer and select blending options. Then click styles at the top and click new style. Name your style and then exit.

Now right click the circle layer and select blending options. Click the style button and again and select the style we just saved. Apply the style and your image should look like this.

We use the same technique that we did for the search button to apply a glossy layer to our circle. Ctrl + Click the layer to select it. Contract the selection by 2 pixels. Create a new layer then fill the circle with white. Reduce the opacity to 55px. Refer to the previous steps if you need more help. You should have something like this.

Now make a selection with the elliptical marquee tool over top your circle and delete it to so that it will look like this.

Now create a new layer and add your logo. I will use a rabbit because my search engine is speedy like that. You can find the rabbit in the custom shape tool if you want to add it. Then I added a 2px border like the search text. Then you can add your tag line and you are finished.

Popularity: 14% [?]
















on May 7th, 2007 at 7:47 pm
Great tutorial. I was looking for something like this.
on May 7th, 2007 at 7:48 pm
This tutorial was very simple, yet effective. It looks kinda familiar though. I think I have seen a search box like this somewhere.
on May 21st, 2007 at 3:23 pm
I like it. Maybe it’s not new looking, yet – nice and simple
on May 21st, 2007 at 4:22 pm
great!
you guys make life so much easier
-a photoshop newbie…
on June 18th, 2007 at 10:20 pm
Thats great but how do we make this functional? The Slice tool? Thanks for any help i can get.
on June 19th, 2007 at 6:36 pm
Yes, you will have to slice the images and code them. I will try to write a tutorial on how to slice and code with CSS in the near future.
on June 20th, 2007 at 12:10 am
I apologize for being such a noob. But i was wondering if i could add a drop down ontop of a photoshop image? I am making a Navigation box, i have two search boxes and i would like to put a drop down below the search boxes. Thanks
on July 24th, 2007 at 8:01 pm
woooooooooooooooooooooooooooooooow good work i love it that
on August 11th, 2007 at 10:17 am
great tutorial found it really easy (and im 13)
i decided to add a little animation to mine
http://i189.photobucket.com/albums/z75/mattyt94/search-bar.gif
on December 4th, 2007 at 7:01 am
great listen I made it and it went perfectly same!
Thanks
on March 2nd, 2008 at 5:38 am
Very neat! I love this tutorial.
I am trying to do the same thing over at http://ilovephim.com/phim/
however, how do i generate the html for this?
on March 10th, 2008 at 9:32 am
wtf? rabbit with 1 B
on April 4th, 2008 at 3:21 pm
a great tutorial, i’ll use this for my new directory, thanks
on June 10th, 2008 at 9:40 am
Looks great was looking for this just as I had imagined, good stuff!!
on November 4th, 2008 at 2:20 pm
i understand how to make this already, but ive been trying to figure out how to make the text box so a user can actually type in it. also so the submit button worls off the text. im pretty new to photoshop but a fast learner
on November 4th, 2008 at 4:02 pm
Guys you will want to remove the text box and submit button. Slice the image and use a background fill. Then in html you will add the text box and style it with css and do the same for the button.
on July 24th, 2009 at 9:01 am
Maybe is a rabbit that ate a “B”
but i dont like the buton very much!
Nice ideea i like the rabit
on August 10th, 2009 at 8:08 am
gr8 gr8 tutuorial
very very nice………………..
This tutorial helps me a lot