By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

Table centered in IE4 and IE6, not IE5 ??

P: n/a
Look at
http://www.acad.sunytccc.edu/instruct/sbrown/
in almost any browser, including IE4 and IE6, and you'll see the
table is centered. Now look at it in IE 5 for Windows and you'll see
the table is sitting at the left.

Since Mozilla 1.4 and Opera 6.0 do center it, I feel pretty
confident that it's an IE5 bug. But is there any reasonable way to
code around it without introducing major complications?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Also sprach Stan Brown:
Look at
http://www.acad.sunytccc.edu/instruct/sbrown/
in almost any browser, including IE4 and IE6, and you'll see the
table is centered. Now look at it in IE 5 for Windows and you'll see
the table is sitting at the left.
div.acchild {text-align:center;} seems to work. Still, it would be
interesting to know why IE5 seems to require this but not the others.
Since Mozilla 1.4 and Opera 6.0 do center it, I feel pretty
confident that it's an IE5 bug. But is there any reasonable way to
code around it without introducing major complications?


I don't think the above code will cause any problems.
Jul 20 '05 #2

P: n/a
Stan Brown wrote:

http://www.acad.sunytccc.edu/instruct/sbrown/
in almost any browser, including IE4 and IE6, and you'll see the
table is centered. Now look at it in IE 5 for Windows and you'll
see the table is sitting at the left.
Confirmed.
Since Mozilla 1.4 and Opera 6.0 do center it, I feel pretty
confident that it's an IE5 bug.
If I read your stylesheet, it looks pretty straightforward, margin
auto to center the table. Appears to be, indeed, a bug.
But is there any reasonable way to code around it without
introducing major complications?


The only thing that comes to mind is the same hack to center a block
(parent div align: center, table align left). But I don't think it's
worth the effort. I have MSIE 5.01/Win2k, and the page looks find with
the table on the left.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #3

P: n/a
It seems "Thomas Mlynarczyk" wrote in
comp.infosystems.www.authoring.stylesheets:
Also sprach Stan Brown:
Look at
http://www.acad.sunytccc.edu/instruct/sbrown/
in almost any browser, including IE4 and IE6, and you'll see the
table is centered. Now look at it in IE 5 for Windows and you'll see
the table is sitting at the left.


div.acchild {text-align:center;} seems to work. Still, it would be
interesting to know why IE5 seems to require this but not the others.


Thanks, Thomas.

Every day I grow more frustrated at the different and incompatible
bugs of browser versions. I keep telling myself I'm going to ignore
them, but I can't quite -- not yet anyway.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.