Step 2: Set TD widths

Page with TD widths adjusted

Now we’ll focus on the fourth row of the table.

Assign a width attribute to each <TD> cell in the fourth row. Give the width value "2%" to the first, third, and final cells. Give the remaining two cells the width value "40%".

Notice the change in your layout table.

Table cell widths are not calculated very precisely. Even when you have specified a width, the browser may stretch cells if it computes that this is needed in order to balance the content of rows and columns. So <TD width="2%"> really just means “make the cell as narrow as possible.”

Previous Home Next

Site hosted by Angelfire.com: Build your free website today!