[Javascript] CSS for IE and NS

Muchacho, Laurent (TWIi London) LMuchacho at twii.net
Tue Nov 20 11:32:53 CST 2001


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 at cic-i.com]
Sent: 20 November 2001 17:03
To: 'javascript at LaTech.edu'
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' 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20011120/ccac987d/attachment.htm>


More information about the Javascript mailing list