PSD to HTML 3.5) Preparing the Social Icons
Previous: PSD to HTML 3.4) Styling the Menu Items
Transcription of PSD to HTML 3.5) Preparing the Social Icons
hello and welcome back to the PSD to HTML responsive portfolio build in our last lesson we finished up our header except for the images over here on the right to know when to export those images from Photoshop so that we can actually use them here and moved everything into the site ten faltered in navigate today here all the changes we make in this lesson will be saved in that site 10 folder so it’s Jim back into Photoshop and talk about how we’re going to export these layers now if you watch the series where I created this particular design in Photoshop then you know that I pulled these icons from the official YouTube and Twitter and Facebook sites and and we’re going to use these official logos or official icons on our site but first we need to export them now it’s gonna be easier to align these properly horizontally if all of these images are the same height now we can see the icons themselves are different heights so I’m going to say these s transparent PNG files and they all have the same height so some of them will have more transparent pixels around the edges but ultimately that will make it easier to adjust everything analyzing everything vertically so what I want to do is find the largest with them height from any of these icons and if we option right click on the YouTube icon for example when we have the move tool selected or three using a PC Alton right click on that later on that item then that layer will be selected we can find that YouTube layers here now keep in mind that that option right click or altering click doesn’t always work sometimes you’ll have multiple layers on top of each other in a particular area and if you have a layer above this YouTube layer of for example which is somewhat transparent but still hands some pixels in the area then it might get in the way of trying to click on the YouTube area but either way you just need to locate that YouTube layer and I’m going to come and click on the thumbnail area for that we are to create a selection that selection of an open up the info panel and we can see the width and height its 28 pixels wide and 20 pixels tall you’ll notice if we control click or command click on the Twitter earlier and makes a selection of the bird and can see that it is 28 pixels wide but 23 pixels tall and if you do the same thing for the Facebook later bc its 28 by 28 the largest number we saw there for any of those dimensions is 28 pixels so let’s go ahead and create a new Photoshop file that’s 28 May 28 pixels so many command and control in a few using a PC gonna make it 2828 pixels click on OK and we want these have transparent background so many create a new layer here and then drag the background layer to the trash can so that all we have is this one transparent layer then we’re gonna go back into our responsible folio large PSD file an amended command or control the NNPC to deselect our selection and then we’re gonna grab these icons and move them into that untitled Document and we can do that by grabbing the layer that we need to get the U-two Blair selected now with the move tool I’m gonna grab the YouTube icon dragon up to the untitled one document and then while holding on to shift I’m gonna release so after you drag it onto the untitled tab you can hit the Shift key and then when you release your mouse button after holding onto the shift key you’ll see that it drops that image or those graphics right in the center of the file so then we’ll come back to our portfolio piece and will select the Twitter later and do the same thing for it will drag it onto the untitled there once the untitled file is selected then we can hold on to shift his shift and then release your mouse button and that will put it right in the center of this file then we’ll do the same thing for the Facebook player will click to selected drag it onto the tab for the entire layer in the shift and release your mouse button and put it where we need it now let’s test to make sure they really are where we needed to be sometimes they’re gonna be one or two pixels off so if I turn off the Twitter and Facebook layers and just leave the YouTube later on as well as the empty layer at the bottom I’m gonna fill this empty later with black interior selected to make sure that black is selected from a foreground color and then we can fill the selected layer with the foreground color by hitting option delete on a Mac or Alt backspace on a PC and we can already see that we’re one pixel off here and you’re probably discover that all of these are gonna have the same issue we’re all going to be about 1 pixel and it’s kind of hard to see at this size but if we assume n we can see that the top left corner is rounded out the top rate bottom right and bottom lester all square if you grab that Facebook layer here and with the move to limit the left arrow key wants and the up arrow key ones and that gets us back to where we can see the entire image we can see all four corners rounded so when you’re dragging and icon or a graphic into another file and use the shift trick and then release the mouse button it puts it pretty close to the center of the final but sometimes it’s one pixel off so you staying tuned engine into place you can see the entire icon here and there you go so you can turn that we are often the tweet earlier back on and after you turn it back on using the icon here she’s me then you also make sure to click the layer itself to selected and then again with the arrow keys were in addition to the left ones and up once and when we don’t really need to move it down one and we just want to get it looking like it’s pretty much vertically centered males gonna till its turn the Twitter layer off the YouTube later on and then click to select the U-two Blair and then again left arrow keys to move it left one and then the up arrow key and it looks pretty good so then we can command one or control and assume back out two hundred percent and we can delete this layer one at the bottom line yes I want to delete it so now with each layer selected one at a time we’re going to save these winter project files folders so right now and you’ll see how only have the YouTube later turned on the other two were turned off you know we’re gonna go to File Save for Web and I want to see this is a PNG 24 file make sure that transparency is checked and click on Save then enter project files folder amnesty this new site 10 folder and a minute read a new folder inside that folder shift command and create a new folder they’re gonna call this new folder images so in the images folder I’m gonna see this item as YouTube that P&G and that’s the same name if you remember that we gave it in her coat if we jump back into text me and look at our codes here we can see they’re called you to death P&G Twitter and Facebook duh P&G so let’s go back into our final turn off the YouTube later in turn on the Twitter earlier and then once again File Save for Web PNG 24 click on Save and we’ll see this one has Twitter not being G during the two earlier off the Facebook later on enemies the keyboard shortcut for Save for Web this time which is command shift option in S or using a PC control shift all 10 s and then again make sure you get PNG 24 with transparency checked in will click on safe and we’ll see this one as facebook.com G so now that those files are saved we jump back into our browser and refresh we can now see our images over here and although we have left to do is to align them and arrange them where they need to be so we’ll get to that in the next video for now it’s just make sure that all the files are saved and we’ll move on thank you for watching
PSD to HTML 3.5) Preparing the Social Icons
Reviewed by Tayyab Saqlain Zakki
on
23:49
Rating:
Reviewed by Tayyab Saqlain Zakki
on
23:49
Rating:

No comments: