Text-Size bafflement

N

Nemo Oudeheis

I put the following little HTML page on my internet website:

<html>
<head>
</head>
<body>
<p style="color:red; background-color:gray; font-size:20pt">Line 1</p>
<p>Line 2</p>
</body>
</html>

I looked at this page with my laptop from home (XP Pro SP2) and on
my machine at work (IBM desktop XP Pro SP2), both with Internet Explorer
"Version: 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 ... Update Versions:;SP2;".

Both home and office show the text with red text on a gray background for
Line 1, and default colors for Line 2:

Line 1
Line 2

When viewed from work, the text size on Line 1 is indeed changed; it is not
changed when viewed from home.

The only reasonable hypothesis I can form about how this could be is that,
despite the IE versions being the same on both machines, the actual parsing
of the CSS must be delegated to a DLL or other ancillary component, and on
my home machine this bit is buggy or down-rev or something. I don't see how
it could be due to different ISPs or the fact that one machine is laptop,
the other desktop.

Can anyone enlighten me?

Thanks,

~Nemo
 
F

Fuzzy Logic

I put the following little HTML page on my internet website:

<html>
<head>
</head>
<body>
<p style="color:red; background-color:gray; font-size:20pt">Line 1</p>
<p>Line 2</p>
</body>
</html>

I looked at this page with my laptop from home (XP Pro SP2) and on
my machine at work (IBM desktop XP Pro SP2), both with Internet
Explorer "Version: 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 ... Update
Versions:;SP2;".

Both home and office show the text with red text on a gray background
for Line 1, and default colors for Line 2:

Line 1
Line 2

When viewed from work, the text size on Line 1 is indeed changed; it is
not changed when viewed from home.

The only reasonable hypothesis I can form about how this could be is
that, despite the IE versions being the same on both machines, the
actual parsing of the CSS must be delegated to a DLL or other ancillary
component, and on my home machine this bit is buggy or down-rev or
something. I don't see how it could be due to different ISPs or the
fact that one machine is laptop, the other desktop.

Can anyone enlighten me?

Thanks,

~Nemo

In Internet Explorer check your settings under View>Text Size
 
B

Brian A.

Nemo said:
I put the following little HTML page on my internet website:

<html>
<head>
</head>
<body>
<p style="color:red; background-color:gray; font-size:20pt">Line 1</p>
<p>Line 2</p>
</body>
</html>

I looked at this page with my laptop from home (XP Pro SP2) and on
my machine at work (IBM desktop XP Pro SP2), both with Internet Explorer
"Version: 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 ... Update Versions:;SP2;".

Both home and office show the text with red text on a gray background for
Line 1, and default colors for Line 2:

That's because you have the style in the first <p> tag amd not the second
<p>tag. If you want both line to be the same:
<p style="color:red; background-color:gray; font-size:20pt">Line 1 <br>
Line 2 said:
Line 1
Line 2

When viewed from work, the text size on Line 1 is indeed changed; it is not
changed when viewed from home.

Are the screen sizes or font set differently for each machine or IE.
The only reasonable hypothesis I can form about how this could be is that,
despite the IE versions being the same on both machines, the actual parsing
of the CSS must be delegated to a DLL or other ancillary component, and on
my home machine this bit is buggy or down-rev or something. I don't see how
it could be due to different ISPs or the fact that one machine is laptop,
the other desktop.

Learn to use external CSS where it isn't shown on the page. You link the code
by ID or Class depending on the way the style sheet is setup.
You can create style sheets in your web app or a text editor.

Copy paste the below into a text editor or a new page in your web app.
Save the file as anyname.css in a folder on your site.

p.clrtxt
{font-family: "Times New Roman", Arial, Verdana, "Book Antiqua", Cursive,
Fantasy, Monospace, Sans-Serif, Serif, Times;
font-size: 14pt;
font-weight: bold;
text-align: center;
color: #eff40b;
background-color: #0f0066;
width: 935px;
height: 22px;
}

Copy/paste into the head of the page with the bad lines mentioned in this post.
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="csshts/anyname.css"> **Change
csshts to the folder you have the css file in. You may/not need the full
qualifying path if it isn't published.

Copy into the body:
<p class="clrtxt">first lines text <br>
seconlines text</p>
Save the page.

The pages paragraph should now match the stylesheet.

For good info on CSS:
http://www.w3schools.com/css/default.asp

--

Brian A. Sesko { MS MVP_Shell/User }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375
 
N

Nemo Oudeheis

Brian A. said:
That's because you have the style in the first <p> tag amd not the second
<p>tag. If you want both line to be the same:
<p style="color:red; background-color:gray; font-size:20pt">Line 1 <br>


Are the screen sizes or font set differently for each machine or IE.


Learn to use external CSS where it isn't shown on the page. You link the
code by ID or Class depending on the way the style sheet is setup.
You can create style sheets in your web app or a text editor.

Copy paste the below into a text editor or a new page in your web app.
Save the file as anyname.css in a folder on your site.

p.clrtxt
{font-family: "Times New Roman", Arial, Verdana, "Book Antiqua", Cursive,
Fantasy, Monospace, Sans-Serif, Serif, Times;
font-size: 14pt;
font-weight: bold;
text-align: center;
color: #eff40b;
background-color: #0f0066;
width: 935px;
height: 22px;
}

Copy/paste into the head of the page with the bad lines mentioned in this
post.
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="csshts/anyname.css">
**Change csshts to the folder you have the css file in. You may/not need
the full qualifying path if it isn't published.

Copy into the body:
<p class="clrtxt">first lines text <br>
seconlines text</p>
Save the page.

The pages paragraph should now match the stylesheet.

For good info on CSS:
http://www.w3schools.com/css/default.asp

--

Brian A. Sesko { MS MVP_Shell/User }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375
As a matter of fact, I originally had the css in an external stylesheet. I
boiled it down to the HTML above in order to control as many of the
variables as possible and to create a minimal example, in the interest of a
scientific experiment.
 
N

Nemo Oudeheis

Fuzzy Logic said:
In Internet Explorer check your settings under View>Text Size
Varying these settings has no effect. I did not mention that earlier,
because the phenomenon occurs without respect to this variable dimension.
 
B

Beauregard T. Shagnasty

I put the following little HTML page on my internet website: ....
<p style="color:red; background-color:gray; font-size:20pt">Line 1</p>
<p>Line 2</p>
When viewed from work, the text size on Line 1 is indeed changed; it is not
changed when viewed from home.

Hard-coding font sizes with pixels or points (points are for printing),
renders IE unable to allow the visitor to resize the text. Use
percentages or em units instead (though IE has a problem with ems as
well).

See: http://k75s.home.att.net/fontsize.html
 
Z

Zilbandy

<p style="color:red; background-color:gray; font-size:20pt">

Please don't try to force a specific font size on me. Let me use the
size I choose in my IE settings.
 
V

Val

Why is everyone trying to give this guy lessons on web design?

He asked a question about IE rendering some given formatting differently on
two diffierent PCs. That's the problem.

Anyone got an answer to that?
 
N

Nemo Oudeheis

Thanks, Val. Everyone seems to have missed the point of the question except
you. Seems these "valuable players" were in a big hurry to jump on their
stylistic hobby-horses and mind-rape a putative newbie.

Makes you grow cynical about what was once known as "UseNet". (Now
"AbuseNet".)

--Nemo

Right now I am working on the assumption that it has something to do with my
local configuration, probably something set in Display-->Properties
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top