Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now to create the graphics for our layout, let's come up to the folder 2, Art Templates inside of the exercise files. Let's open up template_items.psd. Now inside of the Layers Panel, I have a layer at the bottom called fpo. This is simply just a gray layer, but since we have some semi-transparent artwork on the stage here, this is going to make it easier for us to see that artwork. So I am going to zoom up here on the individual slices. Now to get to the Slice tool, we are going to come over here to the Cropping tool, click and hold, and we will see two Slice Tools here, the Slice Creation tool, and the Slice Selection tool.
I am going to select the Slice Selection tool, double-click on logo. And here we can see the slice settings, the Name is logo, the Width is 120, the Height is 70. This is the semi-transparent ping file that's used inside of the IE7 and 8 CSS file. We'd use a semi-transparent ping here since IE7 and 8 don't support semi-transparency with CSS 3, and this is set to 15 x 15. And if I zoom up even further, we can see the two small arrows, we are going to use as indicators for our menu.
This is the down arrow set to 7 x 5, and the right arrow set to 10 x 7. Then lastly, if I zoom out we see this large graphic across the top. This has named banner, and it's set to 980 x 150 pixels. So before we save these out, let's come back to the Layers panel. Let's turn off the fpo layer, and let's come under the File menu and come down and choose Save for Web. If you're using Photoshop CS2 to Photoshop CS 5.5, this menu item will say Save for Web and Devices.
In Photoshop CS6, which is what I am using here, Adobe changed the name now to just Save for Web. When you select this, this is going to bring up the dialog box giving us all of the optimization settings for these slices. So if I select this slice right here, the very top one, I can see this is set to a JPEG file, 75% Quality. And in the lower left-hand area, I can see that this is going to take up 32 kilobytes. If I select the logo, this is going to be saved as a 24-bit PNG, which is going to give us all of that semi-transparency as well. And this slice here, 24-bit PNG for the ie_transparency, and then the tiny little slices here for the arrow indicators, and I can zoom up on those as well.
Now all of these optimization settings have been saved into this Photoshop file, so all of these slices will retain these settings. Let's come down and hit Save. Now from this Save As dialog box, let's come under the Slices. Make sure All User Slices is selected. This tells Photoshop that any slice that we have created will get saved out. All of the additional slices that Photoshop creates to complete the canvas will be ignored. Let's come up here and choose myMenu. Let's pick the images directory, let's hit Save. Now move my document out of the way, come back to the operating system, and now inside of the images directory, we can see all of those individual slices from the Photoshop canvas are saved as individual graphics.
I have arrow_down and arrow_right saved out as GIF files, banner.jpg, ie_transparency and logo are saved out as PNG files. Now that we have generated our graphics, let's come back to the index.html file. Let's open this up in a browser. So in here we can see that our CSS rules are kicking in and locking onto those graphics, our logo is here in the upper left-hand corner. And we can see the graphic in the background that's being applied to that header element inside of our HTML file. So now that we have all of the graphics in place, in the next movie we will start working on the HTML markup that we are going to have our jQuery plug-in conform into a menu.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 104776 Viewers
56 Video lessons · 116661 Viewers
71 Video lessons · 85848 Viewers
131 Video lessons · 41073 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.