Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/angel/public_html/tutorials/tables/intro2.php on line 1

Warning: include(http://dream-ling.net/header.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/angel/public_html/tutorials/tables/intro2.php on line 1

Warning: include() [function.include]: Failed opening 'http://dream-ling.net/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/angel/public_html/tutorials/tables/intro2.php on line 1

INTRODUCTIONS TO TABLES Part 2

Here is part 2 of the tutorial. Hope the first part made sense, if you not, here are some examples on what I was talking about.

CODE:

<table border="10" bordercolor="red"> <tr> <td>Blah here!</td> <td>Blah here!</td> </tr> <tr> <td>Blah here!</td> <td>Blah here!</td> </tr> </table>

VIEW:
Blah here! Blah here!
Blah here! Blah here!

See how tr is used to end each row? If you want to start a new row, you'll have to put tr and then use td for the cell. Also, without the border color, it's really plain, like this:

Blah!

Oh yeah, cellspacing default is set at 2, whether you have it in there or not. It looks weird though, so I recommend 0.

Here is an example of cellspacing:
CODE:

<table border="1" bordercolor="red" cellspacing="2"> <tr> <td>Blah here!</td> </tr> </table>

VIEW:
Blah here!

I usually have cellspacing at 0 and cellpadding at 2, so the table border isn't so close to the text.

Oh and make sure you justify your text too because it looks more nice and neat that way. To do that, put text-align: justify; in your CSS file.

This tutorial was written by Lingling. Don't take my images or copy my tutorial and put them on your site. Thank you!
WRITTEN ON: SEPTEMBER 10, 2004

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/angel/public_html/tutorials/tables/intro2.php on line 68

Warning: include(http://dream-ling.net/footer.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/angel/public_html/tutorials/tables/intro2.php on line 68

Warning: include() [function.include]: Failed opening 'http://dream-ling.net/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/angel/public_html/tutorials/tables/intro2.php on line 68