Quote:
Originally Posted by Psymon
And what about the aforementioned tables, then? Wrap all those in a "text-align: center" div, too, basically?
|
No, because tables are a different beast (unlike text and images, which are "inline content"). If you wrap a table in a "text-align: center" div, you will probably just get the text centered inside each cell. For tables I'm afraid you need auto margins to work (it's usually not
that bad when your table is pushed to the left instead of centered), or specify a fixed width and matching margins like this:
Code:
width: 68%;
margin-left: 16%;
margin-right: 16%;
(16+68+16 = 100)