Posts: 202
Location: Santa Monica, CA
|
I'm talking about the still respected kind of table: the one with tabular data.
I have three of such tables on a website I'm building.
One stays in the center, the others slide to the left, even though I wrote in the CSS:
Code:
#main {
text-align: center;
}
HTML and CSS passes validation without error, I even filled empty table cells with " ".
The one table that respects the align: center; is the one with no empty table cells. the other two have one empty <th> each. Putting in " " doesn't help.
Do I have to give the tables a class, and then put the text-align: center; right into the CSS of this class?
Is there something about tables that stays in the shadow from my searching eyes?
|