473,563 Members | 2,797 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 2662
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler
<vo****@phreake r.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****@phreake r.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.infosystem s.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*******@clar kecomputers.com .au> wrote:
On Wed, 17 Dec 2003 22:24:40 GMT, Vorpal Chortler declared in
comp.infosyste ms.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.annevankest eren.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.n et> <http://www.bertilow.co m>
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="JavaS cript"
src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script
language="JavaS cript"
src="http://geocities.com/js_source/geov2.js"></script><script
language="javas cript">geovisit ();</script><noscrip t><img
src="http://visit.webhostin g.yahoo.com/visit.gif?us107 1767640"
alt="setstats" border="0" width="1" height="1"></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001544 &t=107176764 0" 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

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: 100 px;float: left">thumbnail 2</div> <div style="width: 100 px;float: left">thumbnail 3</div> </div>
3
7350
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 tables). My website consists of a few, simple parts: a "container" DIV which is centered and 750 pixels wide, a "sidebar" DIV which can be found along...
2
2231
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 http://www.ryanwsims.com/sd.php everything's fine (i.e. centered)
3
4623
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) body { text-align: center; min-width: 500px;
15
13485
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 with float. But I can't center two side by side divs. If I float them and give them auto margins, the auto margins are ignored. If I wrap the...
3
4192
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 top level <divthen I can place it with CSS attribute 'left:', but this is a fixed offset. Is it possible to have a <divcentered in the browser window?...
5
4810
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 doing this demo with tables. The main problems are the vertical centering of the info area, and of the text inside the squares.
4
4062
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 whose logged in, the menu, or course, displays different items, sometimes just two items, other times many more. If all menu items are displaying,...
1
2274
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 rows are centering their data. however, the row with three columns, each with images (myimages1-3) are not centering with the rest of the table. ...
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
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 we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.