473,498 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE6 centering text - unwanted

I've got a web customer complaining about centered text when it's not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.

I'm using primitive CSS1 AND tables for the site.

The top page is at http://www.geocities.com/brigidregina/index.html

The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css

If you know what to do, please click email too.

thanks
Jul 20 '05 #1
15 2646
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler
<vo****@phreaker.net.invalid> wrote:
I've got a web customer complaining about centered text when it's not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.

I'm using primitive CSS1 AND tables for the site.

The top page is at http://www.geocities.com/brigidregina/index.html

The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css

If you know what to do, please click email too.

thanks


You've got a lot of <DIV align=center> in your code, it's not clear to me
which ones you want honored and which you don't. But you use a Doctype
that triggers 'Standards mode' rendering in MSIE 6 (and Opera 7 BTW), and
that means that an orthodox interpretation is used: the content of the
enclosed tables is centered, not the tables themselves. The latter is
hardly useful BTW--why center tables that are set to 98% and 100% widths?

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you won't get any
real work done. - J.Nielsen
Jul 20 '05 #2
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler
<vo****@phreaker.net.invalid> wrote:
I've got a web customer complaining about centered text when it's not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.

I'm using primitive CSS1 AND tables for the site.

The top page is at http://www.geocities.com/brigidregina/index.html

The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css

The same thing happened to many of my sites when I switched to IE 6. I
had to go back and left-align all text contained in tables. In IE 5.5
the default <p> setting was left-align, but not in IE 6.
Jul 20 '05 #3
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler declared in
comp.infosystems.www.authoring.html:
I've got a web customer complaining about centered text when it's not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.
You tested it on every browser in existence, and only IE6 behaves like
that?

OK, so that was a loaded question, because I know the answer is no - Opera
7 behaves the same.

I'm using primitive CSS1 AND tables for the site.
Why?

The top page is at http://www.geocities.com/brigidregina/index.html
You have a number of errors in your HTML. First step is to fix those.
http://validator.w3.org/

Not sure whether it will make a difference[1], but the URI in the doctype
declaration should be http://www.w3.org/TR/html4/loose.dtd, not what you
have.

The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css


A couple of errors in your CSS too. http://jigsaw.w3.org/css-validator/

BTW: the validator doesn't mention it, but the <!-- and --> shouldn't be in
your CSS file.

HTH

[1] It may, because the fact that the behaviour is the same in O7, but not
O6, makes me think that it is running in "Quirks" mode (O6 didn't have a
"Quirks" mode).

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #4
On Thu, 18 Dec 2003 14:43:52 +1100, Mark Parnell
<we*******@clarkecomputers.com.au> wrote:
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler declared in
comp.infosystems.www.authoring.html:
I've got a web customer complaining about centered text when it's not
supposed to be. I just looked over at browsercam and it only appears on
Win IE 6 - Nothing else, EVERYTHING else is justified left as it should
be.


You tested it on every browser in existence, and only IE6 behaves like
that?

OK, so that was a loaded question, because I know the answer is no - Opera
7 behaves the same.

Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.
Jul 20 '05 #5
William Starr Moake wrote:
Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


I thought it was someone else his question.
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #6
Tim
On Wed, 17 Dec 2003 21:16:18 -1000,
William Starr Moake <ws*****@yahoo.com> wrote:
Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


Then, apart from being an asshole (something you've repeatedly
demonstrated in here), you're certainly asking for help in the wrong
place, from the wrong people.

If you don't know what's wrong with coding for MSIE, then quit, and do
the entire world a favour.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #7
William Starr Moake:
The latest stats show IE has 95% of the market.


Not according to "Browser News":

<URL:http://www.upsdell.com/BrowserNews/stat.htm>

The stats there show percentages for IE varying between 69% and 88%.

In the "Trends" page the usage of MSIE is summarized as follows:

Roughly 85% use IE-based browsers, down from a high of ~94% as users
switch to other browser families - mainly Gecko - with this downward
trend likely to continue as the alternate browsers improve and as IE
remains stagnant with no planned upgrade for several years.

<URL:http://www.upsdell.com/BrowserNews/stat_trends.htm>

The usage of Gecko-based browsers is summarized as follows on that
same page:

I suggest that ~5-10% typically use Gecko browsers, with this number
growing as IE and Netscape 4 users switch.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #8
William Starr Moake wrote:

Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


What, a post from William Starr Moake, and no "css nazis" comment? I
feel cheated.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #9
http://www.geocities.com/brigidregina/index.html

I've made some changes. How's it now in IE6? Browsercam won't let me
back in.
You've got a lot of <DIV align=center> in your code, it's not clear to mewhich ones you want honored and which you don't. But you use a Doctype
that triggers 'Standards mode' rendering in MSIE 6 (and Opera 7 BTW), andthat means that an orthodox interpretation is used: the content of the
enclosed tables is centered, not the tables themselves. The latter is
hardly useful BTW--why center tables that are set to 98% and 100% widths?
--
Rijk van Geijtenbeek
OK, I've now stripped the <DIV align=center> code around the tables.

The same thing happened to many of my sites when I switched to IE 6. I
had to go back and left-align all text contained in tables. In IE 5.5
the default <p> setting was left-align, but not in IE 6.
You tested it on every browser in existence, and only IE6 behaves like
that?

OK, so that was a loaded question, because I know the answer is no - Opera7 behaves the same.
OK, I didn't really check every browser. Here's the list of the ones I
checked with browsercam.com:

Windows Explorer 6 - centering glitch

Windows Explorer 5.5. - fine
Windows Explorer 5 - fine
Windows Netscape 7 - fine

Mac Safari 1 - fine
Linux Mozilla 1.3 - fine

I should have checked Opera.
I'm using primitive CSS1 AND tables for the site.


Why?


I just use CSS1 for font control. I haven't learned (yet) how to format
structure with CSS.


You have a number of errors in your HTML. First step is to fix those.
http://validator.w3.org/
OK, I checked there and got error(s) alright. All the pages are fine
EXCEPT for this code that Yahoo is appending dynamically at the EOF
</html>:

<!-- text below generated by server. PLEASE REMOVE
--></object></layer></div></span></style></noscript></table></script></ap
plet><script language="JavaScript"
src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script
language="JavaScript"
src="http://geocities.com/js_source/geov2.js"></script><script
language="javascript">geovisit();</script><noscript><img
src="http://visit.webhosting.yahoo.com/visit.gif?us1071767640"
alt="setstats" border="0" width="1" height="1"></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001544&t=1071767640" ALT=1
WIDTH=1 HEIGHT=1>

WTF!? I doubt I'll be able to get them to do anything about it. I run
all my local code through two layers of syntax check and the whole site
is/was error free, except the CSS, see below.
Not sure whether it will make a difference[1], but the URI in the doctypedeclaration should be http://www.w3.org/TR/html4/loose.dtd, not what you
have.
Hmmm, this is what BBEdit 6 inserted:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

I take it you're saying it's wrong. Could you copyeditpaste the exact
thing I should have, please.

The CSS lives at
http://www.geocities.com/brigidregin...urselffree.css


A couple of errors in your CSS too. http://jigsaw.w3.org/css-validator/

BTW: the validator doesn't mention it, but the <!-- and --> shouldn't

be inyour CSS file.

HTH
OK. I went there and found some errors, and fixed them, including the
comment code. But now I still get one error:

Line: 0

Parse error - Unrecognized : }

I don't have a line 0 and don't seen any extraneous }
William Starr Moake <ws*****@yahoo.com> wrote:
Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


Then, apart from being an asshole (something you've repeatedly
demonstrated in here), you're certainly asking for help in the wrong
place, from the wrong people.


Mistaken identity! I'm the one asking for help, not Mr. Moake.
Jul 20 '05 #10
On Thu, 18 Dec 2003 18:39:00 GMT, Vorpal Chortler declared in
comp.infosystems.www.authoring.html:
http://www.geocities.com/brigidregina/index.html

I've made some changes. How's it now in IE6? Browsercam won't let me
back in.
Better, but a lot of it still centered.
http://www.clarkecomputers.com.au/usenet/vorpal.jpg [43k]

You have a number of errors in your HTML. First step is to fix those.
http://validator.w3.org/


OK, I checked there and got error(s) alright. All the pages are fine
EXCEPT for this code that Yahoo is appending dynamically at the EOF
</html>:


Ah, yes. I didn't really look at it that closely, just noticed you had
errors.

WTF!? I doubt I'll be able to get them to do anything about it. I run
Probably not.
all my local code through two layers of syntax check and the whole site
is/was error free, except the CSS, see below.
If it is only that section of the code that is not valid, it is unlikely
that it is related to your problem with centred text. That's what you get
for hosting with Geocities. My recommendation would be to find a better
host. :-)
Hmmm, this is what BBEdit 6 inserted:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

I take it you're saying it's wrong. Could you copyeditpaste the exact
thing I should have, please.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

See
http://www.w3.org/TR/html4/struct/gl...pe_declaration
-3

As I say, it's only the URI that is slightly different, but it may help.
Certainly isn't going to hurt.
http://www.geocities.com/brigidregin...urselffree.css


OK. I went there and found some errors, and fixed them, including the
comment code. But now I still get one error:


Your CSS file is laid out a bit all over the place, but I believe there is
an extra } between the .growup and greentext rules.
BTW: I think that should be .greentext (and .bluetext, etc). I don't
remember seeing a <greentext> element in the specs. :-)

HTH

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #11

"William Starr Moake" <ws*****@yahoo.com> wrote in message
news:vt********************************@4ax.com...
Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


It's said that most people have cheated on their spouse, too. So why not
just do it?

I don't think the conclusion you've reached is valid. Netscape is not a
"geek" browser. Neither is Opera, really, it's popular with people with
disabilities.

Feel free to ignore a lot of people. I'll try to accomodate EVERY visitor to
my site. It really doesn't cost a cent more to code that way, so what's the
benefit of losing five percent - likely more - of your potential market?
Besides being lazy and careless?

You already had to drastically recode for the latest release of IE. If the
next version of IE happens to be far more standards-compliant than
the current one, our sites will still work, and yours won't. You're taking a
hell of a big chance, but it's yours to take.

Jul 20 '05 #12
MH
> > Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market.


Do not believe the stats, many Opera users tell it to identify as IE6
(file - preferences - network or ctrl-alt-o)

--------
MH
Jul 20 '05 #13
On Fri, 19 Dec 2003 10:17:30 +0100, "MH" <no****@nowhere.no> wrote:
> Don't give a rat's ass about Opera or any other browser besides IE.
> The latest stats show IE has 95% of the market.


Do not believe the stats, many Opera users tell it to identify as IE6
(file - preferences - network or ctrl-alt-o)


Which is the default setting anyway.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #14
Thanks, Mark, for all of it.
Jul 20 '05 #15
William Starr Moake wrote:
Don't give a rat's ass about Opera or any other browser besides IE.
The latest stats show IE has 95% of the market. The other 5% are
computer geeks and I design for the general public, not geeks.


Correction, the stats probably show that 95% of hits claim to be IE. Opera,
as shipped, defaults to identifying itself as IE (due to idiotic sites that
do browser detection for dubious reasons).

IE is known to have bugs in its HTTP code which cause superfluous hits,
inflating the true number of IE's users even more. So nobody will really
know just how many users are using IE.

My mom uses Opera on her computer. I use Konqueror and occasionally Mozilla.
These are all Web browsers. (Personally, I refrain from even calling IE a
Web browser but for the moment I'll entertain those that do.) This is why
we have standards. It is not supposed to matter what Web browser is using,
and for good reason. Requiring specific software to access information was
barely state of the art for 1984, and is far below state of the art in
2004. If you really only care about PCs running Windows and users of IE,
why not just serve a Word document?

--
Shawn K. Quinn
Jul 20 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
15031
by: Jeff Thies | last post by:
I have a series of blocks that are float left that I need centered on the page. <div class="center" align="center"> <div style="width: 100 px;float: left">thumbnail 1</div> <div style="width:...
3
7342
by: Jonah Bishop | last post by:
I have a puzzling problem with centering text, and I'm hoping that someone here can help me out. First of all, let me state that I am using XHTML 1.0 Strict and CSS for all layout purposes (no...
2
2225
by: Ryan W Sims | last post by:
I'm having trouble with centering in IE... http://www.ryanwsims.com/koh/ The image should center over the text. It does in Firebird, but not in IE for some reason. If you look at ...
3
4617
by: CMAR | last post by:
To center my <div>, I am currently using something like <div id="navcontainer" align="center"> This centers fine, but is deprecated code. I have seen these two solutions recommended. 1) ...
15
13479
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
3
4187
by: John Pote | last post by:
1. Horizontal centering a <divin browser window. The current trend seems to be to place page content in a fixed width area in the middle of the browser window. How is this achieved? If I use a...
5
4807
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up...
4
4058
by: SAL | last post by:
Hello, is there a way to menu control dynamically center itself horizontally on a page? I have placed a menu control in a panel control (no ajax) and would like it to center itself. Depending on...
1
2270
by: =?Utf-8?B?ZnJhbmt5?= | last post by:
Hello, I've created a table that has two rows that are span across three columns. The third row has three columns, each with an image. The last row is also span accross three columns. The span...
0
7125
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
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.