PB Code Zone
Simple Tables
BARE CELL TABLE
first td cell
| second td cell
| third td cell |
A SINGLE DATA CELL
TWO DATA CELL TABLE
THREE DATA CELL TABLE
cell 1
| cell 2
| cell 3 |
result
ADDING BACKGROUND COLOR
A background color can be added to a table and to individual cells using color names or hexadecimals.
ADDING A BORDER
TABLE ALIGNMENT
Tables can be aligned left, center, or right. Default is left.
Table below is center aligned
ALIGNING TEXT WITHIN THE DATA CELL:
The table cell below is left aligned
EXAMPLE OF CENTER ALIGNED TEXT
EXAMPLE OF RIGHT ALIGNED TEXT
EXAMPLE OF VALIGN = TOP
CELLPADDING EFFECT
COLSPAN EFFECT:
result
| 2 column span | result |
result
| result
| result
| result |
ROWSPAN EFFECT:
result
| result
| 2 row span | result |
result | result | result |
|
 |  |  |