W3C home > Mailing lists > Public > www-html@w3.org > August 2003

Aligning Tables with CSS

From: Damien Bezborodow <drbezborodow@webpathways.com>
Date: Mon, 18 Aug 2003 02:03:18 +0930
To: www-html@w3.org
Message-id: <002901c364dd$44499990$0700a8c0@DAMO>
Why will this not work in ANY of my browsers (MSIE 6.0, Mozilla 1.4, Opera 7.11, Netscape 7.1)?

table {
 text-align: center;

As you can see, I am trying to horizontally align a table. It will not work. I have looked through
documentation without avail for an alternative attribute, so instead I decided to randomly try
"horizontal-align" and "align", but these did not work either.

<table align="center"> works fine, but this is not valid in XHTML 1.1 or the XHTML 1.0 Strict DTD.

This is the page in question: http://eedev.palominoweb.com/

Furthermore the below works fine in MSIE 6.0 but not in Mozilla 1.4, Opera 7.11 or Netscape 7.1:

<div style="text-align: center;">

- Damien
Received on Sunday, 17 August 2003 12:33:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:04 UTC