Table centering in XHTML

Robert Sullivan scp_sulli at sals.edu
Wed Mar 6 14:58:53 EST 2002


Since I converted our site to XHTML 1.0 Transitional, I noticed most of my
pages validate under 1.0 Strict and have been changing them over as I update.

One problem I'm having is with centering tables.  1.0 Strict will not accept
align="center" for <table>, although it works for <td>, and my attempts to do
it with CSS were not successful.

This is not a huge problem as I don't use many tables and a lot of them aren't
centered... just one of those things I thought would be easier.

Thanks for any suggestions.

Bob Sullivan                               scp_sulli at sals.edu
Schenectady County Public Library (NY)     http://www.scpl.org



More information about the Web4lib mailing list