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

Simple Tables



BARE CELL TABLE

first td cell second td cell third td cell





A SINGLE DATA CELL

a single data cell





TWO DATA CELL TABLE

result
cell 1 cell 2





THREE DATA CELL TABLE

result
cell 1 cell 2 cell 3





ADDING BACKGROUND COLOR

A background color can be added to a table and to individual cells using color names or hexadecimals.


cell 1 cell 2 cell 3





ADDING A BORDER

one two three



TABLE ALIGNMENT
Tables can be aligned left, center, or right. Default is left.

Table below is center aligned

center





ALIGNING TEXT WITHIN THE DATA CELL:

The table cell below is left aligned

align=left





EXAMPLE OF CENTER ALIGNED TEXT

align=center







EXAMPLE OF RIGHT ALIGNED TEXT

align=right





EXAMPLE OF VALIGN = TOP

valign=top





CELLPADDING EFFECT

result result result





COLSPAN EFFECT:
result 2 column span result
result result result result





ROWSPAN EFFECT:

result result 2 row span result
result result result