Demo 5:
Nested Tables for Page Layout
While ImageReady's
automatic writing out of HTML code is convenient, it doesn't work so well
when you have a great deal of text you need to put into a page. It stretches
out the table cells. Therefore, it's often necessary to put nested tables
inside of a larger, simple table. Fortunately, ImageReady does allow one
to still create rollovers within a simple table, which can then be transferred
to another outer table.
- Go to your GDT
150 Class Folders. Find the demo5 folder in the Class Folders, and drag
them onto your desktop.
- If not already
there, drag your student folder to the desktop. Put the demo5 folder
inside of your in_class folder.
- Open up demo5.psd
in ImageReady.
- Create your rollover
slices for the left navigation in the Web Options pallette (or Rollover
pallette, if working in Photoshop 7) just like we did in Demo 4. Refer
to Demo 4 Steps 9-14 if you need to refresh your memory.
- Next we are going
to create a spacer image, that we will later replace with a spacer.gif.
- Take a guide and
drag it over to the area where the three small flower images begin.
Create a slice right next to the navigation menu that just touches that
guide, like so:
- Test it in the
browser to make sure the rollovers work correctly.
- This time, when
we Save Optimized As, we will select ONLY the navigation items and the
spacer .gif. But we will optimize the as HTML and Selected Slices only.
This will enable ImageReady to ONLY optimize that HTML table. See below:
- Now go back and
optimize that Poetry About Flowers header as a GIF.
- Open demo5.html
in Dreamweaver. Move the table that was just created down the page a
bit. You will need room to create the following table: 800 pixels wide
with 2 rows, 2 columns. 0 Cellpadding, 0 Cellspacing, 0 Border.
- In this newly created
table, merge the top to cells in the top row. Go to the Insert pallette
and click on the image icon to insert the header graphic. Save demo5.html.
- Select all of the
table cells and set the Vertical Alignment to "top" (tr valign="top").
When you select all the table cells, go to your Properties pallette
and in the drop-down menu of Vert, choose "Top".
- Merge the two
columns of the top row. Insert your header graphic in that top row (Insert>Image).
- Cut your table
with the navigation and spacer and paste it into the second row, first
column.
- Click inside the
table cell you just pasted the navigation and spacer into. Set the width
of this <td> to be 456, the same width as the table that is nested.
Set the other <td> to be 343. (Go to Properties pallette and click
in each cell and fill in the value next to the "W"). Save
demo5.html.
- As in demo4.html,
set up your Alt text, and links correctly (e.g. have the tulip link
go to index.html, the daff link go to daff.html, and the peonies link
go to peonies.html. Save demo5.html. Replace the spacer image with spacer.gif
in the code, as done in demo4.html.
- As we did before,
re-save demo5.html as index.html, daff.html, and peonies.html (Steps
5-8 in your demo 4 instructions). Also don't forget to insert an HTML
title for each page.
- Once all is working,
open Microsoft word, and open each poem within the poems folder.
- Copy and paste
each poem into its appropriate page.
- Add a link to demo5/index.html
on your index.html page.
|