I might missunderstod you. But I think the prob. is that the font is rendered in diff. 
sizes.....

One way is to do it by JavaScript;
something like this;
<head>
<script language="javascript">
var goodbrowser = false, badbrowser = false;

if(navigator.appName.indexOf("Explorer")>=0  || 
navigator.appName.indexOf("Netscape6")>=0)
    goodbrowser = true;
else
    badbrowser=true;

var fontSize = 10px;

if(badbrowser)
    fontSize = 11px;

document.write("<style type='text/css'>");
document.write(".myFont { font-familt...........; 
font-size:"+fontSize+";............}");
document.write("</style>");
</script>
</head>

or include a external stylesheet-file

if(goodbrowser)
    document.write("<link rel='stylesheet' type='text/css' href='css_good.css'>");
else
    document.write("<link rel='stylesheet' type='text/css' href='css_bad.css'>");

and set the font-size in the css-files......

Probably the best way is to do it on the serverside (JSP, ASP etc.)

It's the same thing, but on the serverside;

something like this, in a jsp-document;
.
.
.
.
<%

 int textSize=10;
// if user browsing with ie or ns6 use a smaller size - usually one px is good.....
 if(request.getHeader("USER-AGENT").indexOf("Netscape6")>=0 || 
request.getHeader("USER-AGENT").indexOf("MSIE")>=0) { textSize=9; }
%>
.
.
.
<style type="text/css">
 .myFont { ...................;font-size:<%=textSize%>px; ............ }
</style>
.
.
.
.
The code is not tested on a computer so......


kr

anders

----- Original Message -----
From: "Shaikh, NeelKamal (MED, TCS America)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 9:18 PM
Subject: Re: Browser Incompatibility


> THANK U Lindell .How can the problem be solved by javascript.Do u mean
> solving the problem by cascading style sheet.If it is so ,it didn't work
> out.
>
> Thanks a lot
> Neel
> -----Original Message-----
> From: Anders Lindell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Browser Incompatibility
>
>
> well, this is called browser-incompatibilities !!!!
>
> It's just the way it is...you can fix it with JavaScript but it's not
> funny and it's timeconsuming...but have trust - NS4 is going out of
> fashion soon - I hope......
>
>
> kr
>
> anders
>
>
>
> ----- Original Message -----
> From: "Shaikh, NeelKamal (MED, TCS America)"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 26, 2001 7:05 PM
> Subject: Browser Incompatibility
>
>
> > Hi,
> >
> > when I give , Font family: Verdana , size : 14pt . I see markable
> > difference when I view  in Netscape-4.72 and IE-5.5.
> >
> > how can I solve this problem.
> > thanks in advance
> > Neel
> >
> >
> >
> > -----Original Message-----
> > From: Shah, Maulik (GEAE, Foreign National)
> > Sent: Monday, February 19, 2001 9:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: Performance improvement
> >
> >
> > Hi All,
> >
> >
> >         The scenario is, I'm having 5 lstboxes in a single page. Each
> > combo
> > box needs to be populated from different table from the database. I
> want
> > to
> > come up with an efficeient way of retrieving data for all the 5 list
> > boxes
> > once when a database connection is opened.
> >
> > Currently the code is : - calling a method in a bean for each listbox
> > ...each method is opening and closing the connection .... this is very
> > slow
> > ..and I need to improve the performance.
> >
> >  Should I define vectors / hastable that can hold the values for each
> of
> > the
> > listboxes ..?
> >
> > or is there anyway, where I can have multiple resultsets.
> >
> >
> >
> > Thanks
> >
> >
> > Malik
> >
> >
> ========================================================================
> > ===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ========================================================================
> ===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ========================================================================
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to