W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

text-align behavior

From: Browning, Glen J ERDC-ITL-MS Contractor <Glen.J.Browning@erdc.usace.army.mil>
Date: Thu, 4 Sep 2003 15:40:03 -0500
Message-ID: <C1A0BFED297BD211B4010000BC113BA207B02E92@wesmail03.wes.army.mil>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>

I am using the tsWebEditor, which uses the TidyLib, and I am seeing a
behavior which I don't understand.  The following line of HTML code:

	<hr align="left">

gets replaced with

	<hr class="c1">

where c1 is defined as

	hr.c1 {text-align: left;}

This works fine in IE, but in Netscape, the hr returns to it's default
center alignment.  Apparently, Netscape doesn't recognize the text-align as
applying to anything but text.  Of course, I know of several ways to force
this to do what I want, but what is the "officially recommended" method for
aligning something like this using CSS.

Any help would be greatly appreciated.

Glen Browning,
Webmaster - ERDC MSRC

Phone 601-634-3055
Received on Thursday, 4 September 2003 16:41:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC