Centering a TableYou can draw attention to a table by centering it in the browser window. To center a table with (X)HTML: In the table tag, type align="center" (Figure 16.20). Figure 16.20. The simplest way to center a table is to add the deprecated (but still well supported) center value to the align attribute.
To center a table with CSS:
Tips
Figure 16.22. No matter how wide the browser window is, the table is centered right in the middle.
|