I am setting up borders in the CSS because two of my tables need borders. I can use inline style to set the borders to none for the table where I do not want borders to appear.
First row, first column | First row, second column |
Second row, first column | Second row, second column |
Now I am going to use the CSS settings to put borders on the table and on the individual cells (td for table data).
First row, first column | First row, second column |
Second row, first column | Second row, second column |
Now let's say that we want this aligned in the center of the screen instead of against the left wall. This can be accomplished by using the DIV which is used to make a division in the formatting. Note that you must also close the division or the center alignment will continue past the table. The center attribute is set in the CSS for div.
First row, first column | First row, second column |
Second row, first column | Second row, second column |
You now have a table that is in the center of the screen.