Photoshop: create a transparent navigation bar

roryt roryt is offline Offline Dec 27th, 2006, 4:31 pm |
1
This tutorial will teach you how to create a transparent navigation bar for your website, similar to the navigation at the Microsoft Vista website.

1) Start by creating a new image in Photoshop with a height and width of 700*70px.

2) Filling the first layer with a dark background makes working on semitransparent layers much easier. After you have done this, create a new layer and grab the rounded rectangle tool. Set the radius to 60px and draw a rounded rectangle like this one:

Click image for larger version

Name:	tnip001.png
Views:	278
Size:	3.6 KB
ID:	2919

3) Go into this layer’s blending options (layer>layer style>blending options) and use the following settings:

Click image for larger version

Name:	tnip002.png
Views:	280
Size:	4.8 KB
ID:	2920

Click image for larger version

Name:	tnip003.png
Views:	232
Size:	9.4 KB
ID:	2921

Click image for larger version

Name:	tnip004.png
Views:	213
Size:	7.7 KB
ID:	2922

Click image for larger version

Name:	tnip005.png
Views:	212
Size:	7.6 KB
ID:	2923

4) Click on OK and move to the layer pallet where you should set the fill of this layer to 0% and end up with something looking like this:

Click image for larger version

Name:	tnip006.png
Views:	178
Size:	5.7 KB
ID:	2924

5) Now you have the main bar but you still need to give it a bit more of a transparent look. Create a new layer and grab the Elliptical Marquee tool.

This is where you should put your cursor to start dragging out the marquee:

Click image for larger version

Name:	tnip007.png
Views:	185
Size:	6.2 KB
ID:	2925

This is where you should have placed your cursor when you have finished the marquee:

Click image for larger version

Name:	tnip008.png
Views:	186
Size:	9.3 KB
ID:	2926

6) You need to cut across this selection with another one so that when you fill it, the black background isn’t filled as well. To take a cut away from one selection using another you need to hold down the alt key. Start a rectangular marquee across the top of the image.

This is what it looks like just before you take your finger off the mouse button:

Click image for larger version

Name:	tnip009.png
Views:	188
Size:	14.1 KB
ID:	2927

7) You now need to fill the selection in white using the Paint Bucket tool and drag the layer opacity down to about 11% before deselecting the selection using selection>deselect.

8) You will now have to follow steps 5 – 7 twice more on two new layers, until you have something resembling this:

Click image for larger version

Name:	tnip010.png
Views:	184
Size:	7.2 KB
ID:	2928

9) Now you will have to split this up so that you can put different buttons on it, and to make this easier you should create guides along the width at: 150px, 283px, 416px, 550px using view>new guide.

10) Then grab the eraser tool (e) and select the layer with the original navigation bar on it from the layers pallet. Set the eraser to 1px wide and rasterize the selected layer by right clicking on it and selecting rasterize layer.

11) Now zoom in (ctrl+) and erase the layer along the guides to create a blue line which is the stroke that you set earlier:

Click image for larger version

Name:	tnip011.png
Views:	165
Size:	3.1 KB
ID:	2929

12) All that remains is to add the text for the buttons. Create 5 new layers and write your text for each button, one per layer. In this tutorial the font used is Tahoma at 24pt in white.

13) Align the text to ensure they are all in line by using the guides, and clear the old guides by clicking view>clear guides.

14) Now your text is aligned, add a shadow to each piece of button text by first opening the blending option for the layer and entering the following shadow settings:

Click image for larger version

Name:	tnip012.png
Views:	176
Size:	7.5 KB
ID:	2930

15) Click OK and then add these settings to each layer by right clicking on this layer and selecting copy layer styles. Right click on each of the other text layers and select paste layer styles.

16) Finally, you can replace your background layer with an image or a pattern of your choosing.

You should end up with something that looks not unlike this:

Click image for larger version

Name:	tnip013.png
Views:	441
Size:	34.7 KB
ID:	2931

Note that if you choose to save this navigation bar without an opaque background like the image above has, then you have to save it as a 24 bit PNG file which gives you alpha channel transparency. What this means is that you can place it above an image on a website and you will still be able to see the image behind it. Here is that same navigation bar but saved as a PNG file without a background:

Click image for larger version

Name:	tnip014.png
Views:	358
Size:	23.3 KB
ID:	2932
Last edited by cscgal; May 13th, 2007 at 11:16 pm.
Quick reply to this message  
0
cherylglanville cherylglanville is offline Offline | Nov 20th, 2007
This tutorial was extremely helpful. Thanx so much for posting it. I was able to add my little extras in and come up with a pretty snazzy nav bar...not bad for a first-timer like myself. Thanx again.
 
 

Message:


Similar Threads
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC