Aligning Tables in CSS

Trying to make a page XHTML 1.0 compliant I came across a problem. There is no align="center" in XHTML strict. So you're supposed to make your alignment in CSS but it's complicated. One would think you'd just do align: center but there is no align attribute. I ended up finding this instead.

.table_center { margin-left: auto; margin-right: auto; }
Leave A Reply - 3 Replies
Replies
June 3rd 2003 -

Hmmm. I got to thinking. You might want to look into "float"

February 20th 2005 - Matthew

oooooooooooohhhhhhhhhhhh!!!

I've been trying to figure that out for a WHILE. Thanks so much! It worked =D

October 3rd 2007 - M

Thanks for that - was also trying to work that out - Cheers

All content licensed under the Creative Commons License