1 / 4

Using rowspan and colspan attributes

Creating Tables. Using rowspan and colspan attributes. Introduction. By default a cell appears in one row and one column. However using rowspan and colspan attribute on individual cell <td> tag, you can cause a cell to span multiple rows and columns.

mvinci
Download Presentation

Using rowspan and colspan attributes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Creating Tables Using rowspan and colspan attributes

  2. Introduction • By default a cell appears in one row and one column. However using rowspan and colspan attribute on individual cell <td> tag, you can cause a cell to span multiple rows and columns. • When using rowspan and/or colspan attribute, always remember where the cell starts.

  3. Rowspan Attribute • Rowspan causes a cell to stretch downward to the rows below • If you want to make a cell go across several rows, use rowspan attribute with the <td> tag. • Rowspan can only extend a cell into the next row if there is room in that row 1 2 3 4 5 6

  4. Colspan causes a cell to extend to the right into columns on the right. If you want to make a cell go across several columns, use colspan attribute with the <td> tag. Colspan can only extend a cell into the next column if there is room in that column Colspan Attribute 1 2 3 4 5 6

More Related