Home
Home - www.slicingguide.com
Home Home Contact Us Add to Favorites

LESSON SECTIONS

Lesson 1 - Introduction to the Slicing Guide
Lesson 2 - Developing Your Slicing Strategy
Lesson 3 - Setting the Stage
Lesson 4 - Preparing the HTML Document
Lesson 5 - Main Tables and Images
Lesson 6a - Setting up the Borders
Lesson 6b - Lesson Recap With Basic Diagrams
Lesson 6c - Setting the Final Alignments
Lesson 7a - Slicing and Coding the Header Banner
Lesson 7b - Slicing and Coding the Header Nav Menu
Lesson 8 - Slicing and Coding the Main Menu
Lesson 9 - Creating an Ad Banner Box Area
Lesson 10 - Slicing and Coding the Member Login Menu
Lesson 11a - Basic Content Box Tables and Measurements
Lesson 11b - Slice and Code the Small Content Column
Lesson 11c - Slice and Code the Main Content Column
Lesson 12 - Slice and Code the Footer
Lesson 13 - Finishing Touches
Lesson 14 - Final Notes and Support
Support :
Our Banner:
Welcome to SlicingGuide.com

Welcome to SlicingGuide.com, the online tutorial written by Dan (Faken) of Pixel2life.com. This tutorial is designed to teach you how to slice a complex website layout using Corel Photopaint and Macromedia Dreamweaver. You can use any 2D graphic application such as Photoshop if you do not use Photopaint.

In order to properly slice a website, I HIGHLY recommend that you do so completely by hand rather than use a quick slicing tool such as Fireworks. These programs often generate a sliced layout that looks great until it comes time for those content boxes to start stretching.

[ Previous Lesson ] [ Next Lesson ]

Lesson 11c- Slice and Code the Main Content Column

With the small set of left content boxes out of the way, we're ready to move on to the Strategy Guide's Box 7- Main Content Column area! We'll slice up a few images and basically repeat everything we did in Lesson 11b but on a slightly wider scale.

Fig 11c.1 - Our main Strategy Guide - This lesson covers the slicing and coding of Box 7:

Website Layout Slicing!

 

Before we start, do you remember that shadow decrease edit I did in Lesson 11b on STEP A? Well I didn't show this part here, but I did the same thing for the headers on the main content column. I really don't think we need to repeat that process again, so I'm just letting you know what I did in case things look slightly different. Now that we have that out of the way, let's proceed.

Fig 11c.2 - The two circled areas were edited so the header's shadow was not so long:

Website Layout Slicing!

 

STEP A. In good ol' Photopaint, we'll slice up the next set of images! SPECIAL NOTE! I found this out as I was making the tutorial - the first content box (The one without the header) is 1 pixel less wide than the other two below it with the headers. When I say one pixel less wide, I mean the content area is 1 pixel smaller in width... this is because the left border of the box is 1 pixel wider, so it makes the dark gray text area seem 1 pixel smaller in width than the two boxes below it. So for this one, we'll need to assign that particular content box a background image. Let's get cracking! Let's start by masking off the first header and saving that image as r_content_header_blank.gif!

Fig 11c.3 - Masking off the first header:

Website Layout Slicing!

 

Fig 11c.4 - Save the image as r_content_header_blank.gif:

Website Layout Slicing!

 

Next we'll slice a section of background from the first content box because it's 1 pixel wider than the default background image. We'll save that image as r_content_bg.gif!

Fig 11c.5 - Masking off the first header background area:

Website Layout Slicing!

 

Fig 11c.6 - Make sure you zoom right in and mask off an area that will tile properly:

Website Layout Slicing!

 

Fig 11c.7 - Save the image as r_content_bg.gif:

Website Layout Slicing!

 

 

Along with creating a separate background image for this content box because it's 1 pixel smaller in width, we'll need to create it's own footer as well. We'll then create a second footer image that can be used for the other normal content boxes. So mask this one off, and name it r_content_footer.gif!

Fig 11c.8 - Masking off the first footer:

Website Layout Slicing!

 

Fig 11c.9 - Save the image as r_content_footer.gif:

Website Layout Slicing!

 

Next up is the first full header image. Lets mask that off and save it as r_content_header_news.gif!

Fig 11c.10 - Masking off the first full header:

Website Layout Slicing!

 

Fig 11c.11 - Save the image as r_content_header_news.gif:

Website Layout Slicing!

 

Now before you close the r_content_header_news.gif image in Photopaint, switch over to the layout.jpg you're slicing up and just mask off a small area of the next header. You don't need the whole thing. Then pop back over to r_content_header_news.gif and simply paste the section of the next header over top. Line up the images so it blends in and save this one as r_content_header_top5.gif.

Fig 11c.12 - Masking off the second full header:

Website Layout Slicing!

 

Fig 11c.13 - Switch back to the r_content_header_news.gif image:

Website Layout Slicing!

 

Fig 11c.14 - Paste the masked off area of the next header as a new object:

Website Layout Slicing!

 

Fig 11c.15 - Line up the new object so it blends in properly:

Website Layout Slicing!

 

Fig 11c.16 - Save the image as r_content_header_top5.gif:

Website Layout Slicing!

 

Last but certainly not least, let's mask off the second footer image and save it as r_content_footer2.gif!

Fig 11c.17 - Masking off the second footer image:

Website Layout Slicing!

 

Fig 11c.18 - Save the image as r_content_footer2.gif:

Website Layout Slicing!

 

And that completes the image slicing portion of the lesson! Time for some coding!

STEP B. We're all set for some coding, and we're once again just going to repeat the process from the previous lesson. Let's create our content box tables!

Fig 11c.19 - Click inside the right cell of the table that we're coding the content boxes into. We'll need to stack some tables in here too:

Website Layout Slicing!

 

Now create a new table inside the cell. This table is going to hold the images for the content box, and we'll create a new one for each box. This new table will have 3 rows and 1 column, with a width of 544 pixels.

Fig 11c.20 - Create a new table inside the cell:

Website Layout Slicing!

 

Fig 11c.21 - The new table has been created:

Website Layout Slicing!

 

Click inside the top cell of the new table and insert the first header image r_content_header_blank.gif.

Fig 11c.22 - Insert the r_content_header_blank.gif header image into the top cell of the new table:

Website Layout Slicing!

 

Now click inside the middle cell and set the cell's background image to r_content_bg.gif to apply the special background image we created.

Fig 11c.23 - Set the background image of the middle cell to r_content_bg.gif:

Website Layout Slicing!

 

Next, insert the r_content_footer.gif footer image into the bottom cell to complete your content box.

Fig 11c.24 - Insert the l_content_footer.gif footer image into the bottom cell of the new table:

Website Layout Slicing!

 

We won't be able to use this table for the other content boxes because we'll just need to replace all the images anyway. Create a new 544 pixels wide table with 3 rows and 1 column below the last table you created.

Fig 11c.25 - Create a new table under the first content box table you created:

Website Layout Slicing!

 

Fig 11c.26 - Our next content box table is created:

Website Layout Slicing!

 

Now insert the r_content_header_news.gif header image into the top cell of the new table and insert r_content_footer2.gif into the bottom row. Leave the middle cell empty. Once you have that all set, we'll create a new table again but with 2 rows instead of 3.

Fig 11c.27 - After inserting the proper images in your second table, insert a third with these settings:

Website Layout Slicing!

 

Fig 11c.28 - Here you can see the second content box done with the proper images and our new table created below it:

Website Layout Slicing!

 

Insert the r_content_header_top5.gif image into the top cell of the table and you're done! You've coded 3 fully expanding content boxes!

Fig 11c.29 - Insert r_content_header_top5.gif into the top cell:

Website Layout Slicing!

 

Have a look at the live sample and then it's time to play with the footer!

LIVE SAMPLE - You can see a live sample of what our index.html page looks like so far HERE! Feel free to compare your work by viewing my example's source code.

Footer time!

[ Previous Lesson ] [ Next Lesson ]