Webset

lesson 4.


Your Page will look a little like this (it will look like the image that you made in Paint Shop Pro)

In your Notepad, your table code will look like this

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="700" HEIGHT="300">

<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="700" HEIGHT="170">
<IMG NAME="webset0" SRC="webset_1x1.jpg" WIDTH="700" HEIGHT="170" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="700" HEIGHT="66">
<IMG NAME="webset1" SRC="webset_2x1.jpg" WIDTH="700" HEIGHT="66" BORDER="0"></TD>
</TR>

<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="700" HEIGHT="64">
<IMG NAME="webset2" SRC="webset_3x1.jpg" WIDTH="700" HEIGHT="64" BORDER="0"></TD>
</TR>

</TABLE>
 


There are a few minor adjustments that we have to make here.

The first thing we need to to is to remove the height statement from the opening table tag. We are going to be using this as a web set and don't want the height to be limited

I will change <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="700" HEIGHT="300">
to

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="700">

It is NOT necessary to have the " " around all the stuff in the web page but since they have it there, we'll just leave it.


Cellspacing and cellpadding are important and must stay in tact.

Here is what they mean.

Close your eyes for a moment and picture a warehouse full of boxes. lots of columns and rows of boxes.

see it?

Ok now imagine that each of the boxes has a breakable item inside.

Lets call these boxes "cells"

cellspacing defines the amount of space between the boxes (cells) The default setting for cellspacing is 1. So if we want a 0 setting, we need that statement

cellpadding defines how much Styrofoam popcorns, newspapers, padding is between the box and the breakable item that is inside the box (cell)

The default number for cellpadding is 2, We must add a statement if we want it to be something other than 2. For a webset, we need both cellpadding and cellspacing set at 0.


Go to the next lesson