IE Doesnt understand margin: auto
IE6 does, as does IE5/Mac. Only if you are worried about IE5.*/Win do
you need the text-align hack.
/Roger
--
http://www.456bereastreet.com/
**
The discussion list for http://webstandardsgroup.org/
See
Hey Mario,
IE Doesnt understand margin: auto
You need to give the parent container text-align: center - then in the
child (#container) have: text-align: left to fix the centered text.
Simply add this to your body {} CSS:
text-align: center;
Because you already have: text-align: justify - there
Hi,
I think your question is a kind of FAQ, and the solution is adding
text-align:center; style to the body element, I guess.
On Apr 1, 2005 3:58 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
My problem is the main content area on the homepage is left justified in
IE, but center aligned in FF
On Fri, 1 Apr 2005 00:58:55 -0600 (CST),
[EMAIL PROTECTED] wrote:
[...]
I want it to center align in IE too therefore what am I doing wrong?
Here's the URL for the test file:
http://www.waltermortgage.com/index1.stm
Any advice is always appreciated!
Add text-align: center to the body
Chris,
I feel stupid! I completely forgot IE doesn't recognize margin: auto,
and I've inserted text-align: center in the CSS body rule in another
design.
Please forgive my temporary memory freeze :)
Again, I've just gotten started on the conversion, and do plan on removing
all table tags.
On Apr 1, 2005 3:58 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
My problem is the main content area on the homepage is left
justified in IE, but center aligned in FF and Opera, which is
correct. The following is a snippet from my CSS file, which controls
the main content area:
#container