stef2k
asked on
My font in <PRE>
Hi,
I want to have a text formatted the way I want, with the font I want.
I thaught :
<PRE>
<Font face=arial size=2>
a
z
e
r
t
y
</Font>
</PRE>
Would do the thrick.
Yes and no :
In Explorer all works fine, in Netscape this gives me one size smaller than the size I want.
How can I have preformatted text in the same size in BOTH netscape and explorer?
Thanks,
I want to have a text formatted the way I want, with the font I want.
I thaught :
<PRE>
<Font face=arial size=2>
a
z
e
r
t
y
</Font>
</PRE>
Would do the thrick.
Yes and no :
In Explorer all works fine, in Netscape this gives me one size smaller than the size I want.
How can I have preformatted text in the same size in BOTH netscape and explorer?
Thanks,
sorry forgot, its a little bit smaller in netscape. ill be back...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HI,
You can solve this by using Cascading Style Sheets (css).
Define two css, one with 10pt for IE and one with 11pt for NN. In your file first check the type of browser and based on the browser link the style sheet.
Like this...
<Script language='javascript'>
var app
app=navigator.appName
if(app.indexOf['Microsoft' ]!= -1){
document.write("<link rel=stylesheet href=ie.css>")
}
else
{
document.write("<link rel=stylesheet href=nn.css>")
}
</script>
Hope this helps you.
GOOD LUCK...:)
You can solve this by using Cascading Style Sheets (css).
Define two css, one with 10pt for IE and one with 11pt for NN. In your file first check the type of browser and based on the browser link the style sheet.
Like this...
<Script language='javascript'>
var app
app=navigator.appName
if(app.indexOf['Microsoft'
document.write("<link rel=stylesheet href=ie.css>")
}
else
{
document.write("<link rel=stylesheet href=nn.css>")
}
</script>
Hope this helps you.
GOOD LUCK...:)
HI,
You can solve this by using Cascading Style Sheets (css).
Define two css files with class name "fontsize", one with 10pt for IE and one with 11pt for NN. In your file first check the type of
browser and based on the browser link the style sheet.
Like this...
<html>
<head>
<Script language='javascript'>
var app
app=navigator.appName
if(app.indexOf['Microsoft' ]!= -1){
document.write("<link rel=stylesheet href=ie.css>")
}
else
{
document.write("<link rel=stylesheet href=nn.css>")
}
</script>
</head>
<body>
<pre><font class="fontsize">
a
z
e
r
t
y
</font></pre>
<body>
</html>
Hope this helps you.
GOOD LUCK...:)
You can solve this by using Cascading Style Sheets (css).
Define two css files with class name "fontsize", one with 10pt for IE and one with 11pt for NN. In your file first check the type of
browser and based on the browser link the style sheet.
Like this...
<html>
<head>
<Script language='javascript'>
var app
app=navigator.appName
if(app.indexOf['Microsoft'
document.write("<link rel=stylesheet href=ie.css>")
}
else
{
document.write("<link rel=stylesheet href=nn.css>")
}
</script>
</head>
<body>
<pre><font class="fontsize">
a
z
e
r
t
y
</font></pre>
<body>
</html>
Hope this helps you.
GOOD LUCK...:)
ASKER
Hi,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f ont-size:1 pc">inside the <PRE>tag?
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
ASKER
Hi,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f ont-size:1 pc">inside the <PRE>tag?
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
ASKER
Hi,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f ont-size:1 pc">inside the <PRE>tag?
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
Thanks for the comments,
so far I love the SPAN tag the most :
quite easy and I don't need binoculars anymore to read my <pre>text in Netscape.
Now what I don't get is : what is this SPAN tag doing exactly?
And why is
<FONT SIZE="2" face=arial>outside the <PRE>tag still different from
<SPAN STYLE="font-family:Arial;f
Or better asked : how do I get my text inside <PRE>look like the text outside <PRE>?
I tried like you said 2pc, but that looks like a real big font compared to font size = 2, both in Netscape and explorer.
The CSS, is it also workable in Opera, and what is it advantage over SPAN tag?
Thanks,
Please update the experts here who have so willingly stepped in to help you, since much time has passed since your last comments, and Email notifications may not have been generated to the participating experts here due to some problems at that time. If you've been helped, accept the respective comment by that expert to grade and close it.
To see all your Open and Locked questions, click your member profile and View Question history to update/close them as well.
Somewhat off-topic, but important.
************************** **** ALERT********************* ********** *
WindowsUpdate - Critical Update alert March 28, 2002 from Microsoft
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/ms02-015.asp
Synopsis:
Microsoft Security Bulletin MS02-015
28 March 2002 Cumulative Patch for Internet Explorer
Originally posted: March 28, 2002
Summary
Who should read this bulletin: Customers using Microsoft® Internet Explorer
Impact of vulnerability: Two vulnerabilities, the most serious of which would allow script to run in the Local Computer Zone.
Maximum Severity Rating: Critical
Recommendation: Consumers using the affected version of IE should install the patch immediately.
Affected Software:
Microsoft Internet Explorer 5.01
Microsoft Internet Explorer 5.5
Microsoft Internet Explorer 6.0
Thought you'd appreciate knowing this.
":0)
Asta
To see all your Open and Locked questions, click your member profile and View Question history to update/close them as well.
Somewhat off-topic, but important.
**************************
WindowsUpdate - Critical Update alert March 28, 2002 from Microsoft
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/ms02-015.asp
Synopsis:
Microsoft Security Bulletin MS02-015
28 March 2002 Cumulative Patch for Internet Explorer
Originally posted: March 28, 2002
Summary
Who should read this bulletin: Customers using Microsoft® Internet Explorer
Impact of vulnerability: Two vulnerabilities, the most serious of which would allow script to run in the Local Computer Zone.
Maximum Severity Rating: Critical
Recommendation: Consumers using the affected version of IE should install the patch immediately.
Affected Software:
Microsoft Internet Explorer 5.01
Microsoft Internet Explorer 5.5
Microsoft Internet Explorer 6.0
Thought you'd appreciate knowing this.
":0)
Asta
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
In the absence of responses, I may recommend DELETE unless it is clear
to me that it has value as a PAQ. Silence = you don't care
</note>
Cd&
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
In the absence of responses, I may recommend DELETE unless it is clear
to me that it has value as a PAQ. Silence = you don't care
</note>
Cd&
It is time to clean this abandoned question up.
I am putting it on a clean up list for CS.
<recommendation>
points to third
</recommendation>
If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.
Cd&
I am putting it on a clean up list for CS.
<recommendation>
points to third
</recommendation>
If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.
Cd&
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
SpideyMod
Community Support Moderator @Experts Exchange
--------------------------
<PRE>
<SPAN STYLE="font-family:AriaL;f
a
z
e
r
t
y
</SPAN>
</PRE>