Positioning Text Within Cells

The text-align and vertical-align properties can be used to position text within a cell. Text-align specifies the horizontal position and can be set to left, center, or right. Vertical-align specifies the vertical position and can be set to top, middle, or bottom.

Positioning Text Within A Cell
text-align: left; text-align: center; text-align: right;
vertical-align: top; Mary Rm 410 Programmer
vertical-align: middle; John Rm 411 Analyst
vertical-align: bottom; Fred Rm 412 Planner