Today I will show you how to slice a clean .psd layout in 12 easy steps. This tutorial has many pictures, hence it’s a piece of cake to follow it, even for the beginners!

First of all, we need to download the .psd layout that we are going to slice. (If you want to learn how to create this layout, you can follow the tutorial on sixrevisions.com)

Design a clean portfolio layout

Let’s slice the layout!

  1. First thing first, create a folder called “layout” somewhere on your computer.
  2. Open the .psd file with photoshop.
  3. Use the Rectangular Marquee Tool (M) to select the area shown on the next picture. Use the Copy Merged function (Ctrl + Shift + C) to copy the selected area. Create a new document and paste (Ctrl + V) the copied selection into the new document.  Save this inside the layout folder under the name top-bg.png.

    slice a clean psd layout 1

  4. We are going to do the same thing again and  again… don’t falter!Use the Rectangular Marquee Tool (M) to select the horizontal bar shown on the next picture. Use the Copy Merged function (Ctrl + Shift + C) to copy the selected area.Create a new document and paste (Ctrl + V) the copied selection into the new document. Save this inside the layout folder under the name middle-hr.png.

    slice a clean psd layout 2

  5. Now hide the text of the sidebar box. And do as before with the top of the sidebar box. (Please be careful and don’t select the whole sidebar box.). Do NOT save it yet.

    slice a clean psd layout 3

    Before saving this picture, we need to do a few changes. Use the canvas tool (images > canvas size) and use the following settings:

    slice a clean psd layout 4

    Then, use the Rectangular Marquee Tool (M) to select the bottom part of the picture. Transform the selection (ctrl+T) and drag in order to fill all the canvas:

    slice a clean psd layout 5

    Save the picture under the name sidebar-box-top.png

  6. Do the same as for step 3 or 4 with the bottom of the sidebar box. Save it under the name sidebar-box-bottom.png.

    slice a clean psd layout 6

  7. Next one is the footer. Hide the copyright and repeat the same actions as before. Save the picture under the name footer-bg.png.

    slice a clean psd layout 7

  8. We are almost done. Hang in there!Hide everything but the background. Be sure to select all the visible background (but NOT the transparent part) . Use the copy merged function, create a new document and paste the copied selection into the new document.  Save this inside the layout folder under the name main-highlight-bg.jpg.(You can save it at around 80% .jpg quality. It’ll still weight less than a .png)

    slice a clean psd layout 8

  9. Next thing to slice is the navigation arrow. So… slice it and save it under the name top-nav-focus.png.

    slice a clean psd layout 9

  10. Now slice the list circle as shown below. Save it under the name list-unordered.png.

    slice a clean psd layout 10

  11. Last… yes, last! Hide everything except the (screenshot-ish) photos. Slice and save them under the name right-pics.png

    slice a clean psd layout 11

  12. If everything is okay, you should have the following pictures in your “layout” folder: top-bg.png, middle-hr.png, sidebar-box-top.png, sidebar-box-bottom.png, footer-bg.png, main-highlight-bg.jpg, top-nav-focus.png, list-unordered.png, right-pics.png.

We could have made a hover-ready state for the navigation menu, and other small changes to make all this a little better but I wanted to keep it as easy as possible.

What now?

Slicing a .psd file is not really fun, is it? But it’s useful! In the next article, I’ll show you how to use the sliced pictures in order to code the layout in XHTML/CSS. And, I’ll teach you many CSS tricks!

I hope you enjoyed this little tutorial. The next one will be even more interesting (but harder to follow)!