Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Aligning Your Table Content 265

10


You can override the row alignment for individual cells by adding align to the or


elements:

14
16
No Data
15

The following input and output example shows the various cell alignments and how they
look (see Figure 10.18). I’ve added a style sheet that sets the cell heights to 100 pixels to
make the vertical alignments easier to see:


Input ▼


<!DOCTYPE html>




Cell Alignments




















Left Centered Right
Top /> alt="" /> alt="" />
Centered alt="" /> alt="" />