Let's get rid of CELLPADDING and CELLSPACING and go back to our simple little table.
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick |
Larry | Curly | Mo |
A cool feature of the newer browsers is the ability to specify background colors for a table cell, row or the whole table. You use BGCOLOR just like you would in the <BODY> tag.
<TABLE BORDER=3 BGCOLOR="#FFCC66">
<TR>
<TR>
</TABLE>
<TD>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick |
Larry | Curly | Mo |
<TR BGCOLOR="#FF9999">
<TD>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TR BGCOLOR="#99CCCC">
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
</TABLE>
Ed | Tom | Rick |
Larry | Curly | Mo |
<TR BGCOLOR="#FFCCFF">
<TD>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TR>
<TD BGCOLOR="#FF0000">Larry</TD>
<TD>Curly</TD>
<TD BGCOLOR="#3366FF">Mo</TD>
</TR>
</TABLE>
Ed | Tom | Rick |
Larry | Curly | Mo |
Here's a handy chart I use to choose background colors. You can also use Color Picker.
One more thing about these table background colors... a <TD> bgcolor will override a <TR> bgcolor and a <TR> bgcolor will override a <TABLE> bgcolor. Not that this needs further explanation but I'm kind of having fun with this so here's an example:
<TABLE BORDER=3 BGCOLOR="#FF6633">
<TR BGCOLOR="#009900">
<TR>
</TABLE>
<TD BGCOLOR="#9999FF">Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick |
Larry | Curly | Mo |
Let me take a minute to esplain something. A browser has to interpret the instructions you give it the best way it can. If something has not been specified one way or another, most browsers will try to come up with an attractive solution. The best thing you can do as an author is to specify as much as you can, especially those things that are important for your page to look right. It is also important to view your work through those browsers that people actually use. Since most people use Netscape, that is a good start. You may also want to have a copy of a couple other popular browsers to be sure that you look right to them too.
Another consideration is screen resolution. I work on a 640x480 screen. Many people use 800x600 and a few have theirs set to 1024x768. This simple difference has the potential to seriously mess with your page design. There is a little utility that I use called QuickRes that can change your screen resolution back and forth with the click of a button. It's not a bad idea to view your pages through other resolutions.
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD>Ed</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Rick | |
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=2>Ed</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Rick | |
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=2>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick | |
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=2>Ed</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Rick | |
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=3 ALIGN=CENTER>Ed</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | ||
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=3 ALIGN=CENTER><STRONG>Ed</STRONG></TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | ||
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD COLSPAN=3 ALIGN=CENTER>
<A HREF="http://junior.apk.net/~jbarta/">Ed</A></TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | ||
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Larry</TD>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick |
Larry | Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD ROWSPAN=2>Ed</TD>
<TD>Tom</TD>
<TD>Rick</TD>
</TR>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | Rick |
Curly | Mo |
<TABLE BORDER=3>
<TR>
<TR>
</TABLE>
<TD ROWSPAN=2>Ed</TD>
<TD COLSPAN=2>Tom</TD>
</TR>
<TD>Curly</TD>
<TD>Mo</TD>
</TR>
Ed | Tom | |
Curly | Mo |
Introduction | Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5 | Lesson 6 | Lesson 7 | Index |
PROFESSIONAL WEB DESIGN |