12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Authoring <strong>Boot</strong> <strong>Camp</strong><br />

<br />

<br />

<br />

<br />

Beverage<br />

Size<br />

<br />

<br />

Mocha<br />

50oz<br />

<br />

<br />

Table Cell and Row Spans<br />

Cells may span several rows or columns. The number of rows or columns spanned by a<br />

cell is set by the rowspan and colspan attributes for the TH and TD elements. This can be<br />

helpful for tables where your first row acts as a singled header for several columns below<br />

it. Or when you want to make a single column span two rows to insert a larger image.<br />

Colspan<br />

The colspan is short for column span, which means coding a table data cell to stretch the<br />

length of its own column plus one or more next to it.<br />

When you stretch a column to take the space of two in its own row, you define that it<br />

actually takes the place of the second table data cell. This is why you see only two table<br />

data cells coded in row one of the table below.<br />

Rowspan<br />

The rowspan is short for row span, in which you code a table data cell to stretch to the<br />

height to its own row and one or more below it.<br />

When you stretch a row to take the space of two, you define that it actually takes the<br />

place of the following row’s table data cell that would visually appear just below it. This<br />

is why you see only two table data cells coded in row three of the table below.<br />

In order for you to even tell this is a table in the browser view, we need to add border information<br />

to the table shell and the table data cells: style=”border:1px black solid”, etc.<br />

122

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!