By eHow Internet Editor
Rate: (0 Ratings)
Tables in HTML are used to provide a matrix of rows and columns, with each cell holding its own value. You can set certain formatting attributes for each column independently, such as alignment and width.
.
Step3
Replace the "1" with a number that indicates how thick you want the table's borders to be. Omit the "border" expression and number entirely if you want the borders to be invisible.
Set Formatting for a Column
Step1
Type the following by itself on the next line to indicate that you are setting attributes for the first column of the table:
Step2
Replace "3" with the number of columns that you want these attributes to apply to, counting from the leftmost unformatted column to the right. If you omit the span attribute, the formatting will apply to a single column.
Step3
Replace "right" with "left," "center" or "justify" to reflect the alignment you want the contents of the column to have.
Step4
Replace "top" with "bottom" or "center" to reflect the vertical alignment you want the contents of the column to have.
Step5
Replace "40" with a number that reflects how many pixels wide you want the column to be.
Step6
Write an additional column tag for each additional column in this table for which you want to set attributes. Each column tag operates on the next unformatted column, from left to right.
Finish the Table
Step1
Continue to create and tags to define the cells of the table once all your column groups have been defined.
Step2
Type
to complete the definition of the table.
tag. element right after the tag, before defining the table header or its rows.
eHow Article: How to Set Table Column Attributes in HTML
eHow Internet Editor