Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] CSS for IE and NS


  • From: javascript@xxxxxxxxxx (Muchacho, Laurent (TWIi London))
  • Subject: [Javascript] CSS for IE and NS
  • Date: Tue, 20 Nov 2001 17:32:53 -0000

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C171E9.34AEE8A2
Content-Type: text/plain;
	charset="iso-8859-1"

Hello Matthieu
 
I know it's seem strange but the solution it's to create a seconde style
sheet for ns and put all the font-size 1px bigger for netscape
do something like that to give the right style sheet
 
var ns = (document.layers)? true:false
cssUrl = 'ieStyle.css';
if (ns){
cssUrl = 'nsStyle.css';
}
document.write('<link rel="stylesheet" href="' + cssUrl + '"
type="text/css">');
 
and the it will work fine 
 
Laurent

-----Original Message-----
From: FERON Matthieu [mailto:FERONMA@xxxxxxxxx]
Sent: 20 November 2001 17:03
To: 'javascript@xxxxxxxxxx'
Subject: [Javascript] CSS for IE and NS



hello, 
I've got a text to be sized the same in IE or NS. 
I use a CSS with the px unit but it's not the same appearance. 
I know there's other units but I don't know the one I could use to have the
same 'look' 


------_=_NextPart_001_01C171E9.34AEE8A2
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>CSS for IE and NS</TITLE>

<META content="MSHTML 5.00.3207.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>Hello 
Matthieu</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>I know 
it's seem strange but the solution it's to create a seconde style sheet for ns 
and put all the font-size 1px bigger for netscape</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>do 
something like that to give the right style sheet</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>var ns 
= (document.layers)? true:false</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>cssUrl 
= 'ieStyle.css';</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>if 
(ns){</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>cssUrl 
= 'nsStyle.css';</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001>}</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001>document.write('&lt;link rel="stylesheet" href="' + 
cssUrl + '" type="text/css"&gt;');</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>and 
the it will work fine </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=831263017-20112001>Laurent</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> FERON Matthieu 
  [mailto:FERONMA@xxxxxxxxx]<BR><B>Sent:</B> 20 November 2001 
  17:03<BR><B>To:</B> 'javascript@xxxxxxxxxx'<BR><B>Subject:</B> [Javascript] 
  CSS for IE and NS<BR><BR></DIV></FONT>
  <P><FONT face=Arial size=2>hello,</FONT> <BR><FONT face=Arial size=2>I've got 
  a text to be sized the same in IE or NS.</FONT> <BR><FONT face=Arial size=2>I 
  use a CSS with the px unit but it's not the same appearance.</FONT> <BR><FONT 
  face=Arial size=2>I know there's other units but I don't know the one I could 
  use to have the same 'look'</FONT> </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C171E9.34AEE8A2--