|
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:
VIEW:
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:
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:
VIEW:
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.
WRITTEN ON: SEPTEMBER 10, 2004 |