[WEB4LIB] Table centering in XHTML

Michael Sauers msauers at bcr.org
Wed Mar 6 15:53:29 EST 2002


> 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.

Try this:

body {text-align: center}
td   {text-align: left}

The first line centers the body content, the second left-justifies the table
content.

----------------------------------------------
Michael Sauers, Librarian, Trainer & Author
Bibliographical Center for Research (BCR)
Aurora, CO :: 303-751-6277 :: msauers at bcr.org
http://www.bcr.org/~msauers
----------------------------------------------




More information about the Web4lib mailing list