Zymic

Webmaster resources

Professional XHTML & CSS Coding

Including Wordpress & Vbulletin from $145 - Learn More

Adobe Photoshop

Free Tutorials » Adobe Photoshop » Dark Layout Part 3

Slice your layout and then learn how to code it with the help of Dreamweaver!

Step 1

We need to now slice our layout, select the slice tool: Now drag around the area of the top header/banner (make sure its above the navigation). See below:

Step 1 diagram

Step 2

Now slice the home button, make sure its inline with the stroke lines, see below, (zoom in):

Step 2 diagram

Step 3

Now do the same for your next button, for me its the "about" button:

Step 3 diagram

Step 4

Now do the same for all of your top buttons:

Step 4 diagram

Step 5

We now need to slice the left content box:

Step 5 diagram

Step 6

And now do the same for the main content box (make sure your inside of border lines), and you should have something looking like below:

Step 6 diagram

Step 7

Now simply slice around the copyright bar:

Step 7 diagram

Step 8

Your Layout should be looking like below, click the image to enlarge:

Step 8 diagram

Step 9

We now need to save it ready for the web. Go to: [ File > Save For Web ] and use the gif settings below:

Step 9 diagram

Step 10

Now click Save & save it in the folder you wish to keep the site in. Then save it as "image" this will be the name of the images.

Step 10 diagram

Step 11

Now open up image.html in the folder you stored your site in. Your layout should now be coded in tables etc, photoshop is handy isnt it?

Step 12

Open up image.html and re-save it as index.html. Give the layout a black background and center the layout if you wish.

Now click on the first button on your navigation bar. Mine was home. Point the SRC to your home html page, (for example link it to home.html, we shall create that page later on). You must always target it into "iframe", so helps us later on.

Step 12 diagram

Step 13

Now simply link all of your navigation buttons to the pages you wish, remember to target them to "iframe" like above.

Step 14

Now click on the first content box image:

Step 14 diagram

Step 15

In the <"TD"> tag type in background= then the image name, width & height of the image you selected. (Left content box bg image). As shown below.

Step 15 diagram

Step 16

Then simply delete the image leaving the table data area left with its background. Doing this will allow you to add content into the box as you have deleted the image and all what's left is the BG. Now simply add in a font tag like I did and add the words "content here" for an example.

Step 16 diagram

Step 17

Now click on the first main box image:

Step 17 diagram

Step 18

Now using the method we used for the first content box make a background for it using the main images width, height & src as shown below:

Step 18 diagram

Step 19

Then simply delete the image leaving the table data area left with its background. We now need to add in an iframe, the iframe will carry all the main content of the layout. Copy the below iframe code but make sure the height and width of the iframe matches with its background.

Step 19 diagram

Step 20

Now save your page, your computer may crash ;) ! Preview the layout in a browser, hopefully your iframe will be showing but with a page not found page.

Step 20 diagram

Tutorial navigation

Tutorial comments

08.07.2008 -

29t88 says …

i dont have dreamweaver so can somone help me code out mine xD?

04.07.2008 -

juan249 says …

this is my result:

http://juan249.zzl.org/

05.04.2008 -

oziyn says …

wud b nice to see the actual finished version

21.02.2008 -

JuniorD says …

i have no idea how to load my psd/gif file into dreamweaver, nor able to slice it. any help?

10.01.2008 -

LiLManiac says …

Haha that is a finished template that he just "cut" in pieces

View all user comments for this tutorial.

Tutorial statistics

Date added:
30.10.2004
Author:
Zymic
User rating:
3/5
Rate tutorial:
Total views:
8406
Total comments:
7

Advertisements