473,394 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Table centered in IE4 and IE6, not IE5 ??

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
3 1723
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kai Grossjohann | last post by:
I have a table which contains a top-aligned table cell: .... <tr style="height:40"> ... <td colspan="1" rowspan="2" align="left" valign="top" style="overflow:hidden;">...
7
by: ridergroov | last post by:
Hi folks. I'm trying to figure out how I can insert 2 different graphics into a table cell and align one to the top and one to the bottom using CSS. I used the "vertical align" to "top" in DW but...
11
by: tangler | last post by:
I've read other posts on here about this issue and I've tried applying the code but I still can't get a centered table. Here is what I have: In my CSS: .centered-table { margin-left: auto; ...
6
by: hiervision | last post by:
Hi I have a question about a CSS menu. I've got a 700 pixel table centered in the body of my page. The table scrolls quite a ways down. I would like to place a menu flush against the right...
7
by: TheLongshot | last post by:
I just recently converted a few pages of my application to using master pages. Problem is, in all of my content pages, the contents are centered. I can't figure out why. The markup in the...
16
by: Tantale | last post by:
I used this serviec to check my webpage http://www.jmrw.com/Abroad/Barcelone/index.htm Made with Dreamweaver 8. The result is 206 errors, most of them "end tag omitted, but OMITTAG NO was...
3
by: dubing | last post by:
Hi, I'm trying to do align table center in CSS like this. But it doesn't work. ..tx-gooffotoboek-pi1 table { text-align: center; } I can do <table align="center"but it's said deprecated....
1
by: JohnIdol | last post by:
Hi, Developing with VS2005 I usually put a table inside a div, setting align="center" for the div and it works fine in IE, with the table centered inside the div and wrapped by the div. Now I...
7
by: SpaceMarine | last post by:
hello, i see that <table align="center"is no longer valid markup in XHTML. nor is <center><table></table></center>. how then does one center a table? found articles for centering text: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.