Trevor Nichols wrote:
>
> Rats. Almost all our tables have left aligned column
> headings, and I hoped to make that the default so that
> alignment only needed specifying occasionally.

Not sure if this solves your problem but (in addition to Jukka's suggestion
for good browsers) you could feed IE6 a so called CSS expression:

th { text-align: expression(this.align ? this.align : 'left'); }

This sets the CSS text-align property to:
 - 'left'  if the align attribute is not set (not present in the markup),
 - to the value of the align attribute otherwise.

Especially if you care validation is better to hide that rule in a
conditional comment, and all warnings about "expressions" apply (they are
probably disabled is cases of high security settings.)

Bruno

[1] http://msdn2.microsoft.com/en-us/library/ms537634.aspx

--
Bruno Fassino http://www.brunildo.org/test

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to