Forum Moderators: not2easy

Message Too Old, No Replies

IE5 for Mac and CSS

         

FrankJohnson

4:12 am on Apr 11, 2004 (gmt 0)

10+ Year Member



Friends:

I'm working on a site for a client and am using the following code to call the stylesheets I have developed:


<link rel="stylesheet" href="styles/nn4.css" type="text/css" media="screen" />
<line rel="stylesheet" href="styles/print.css" type="text/css" media="print" />
<style type='text/css' media='all'>@import url('(absolute path removed)/styles/main.css');</style>

I've removed the absolute path to my main.css stylesheet from the import statement to stay within the forum rules.

IE5 for Mac appears to be following the nn4.css stylesheet which I intended for Netscape 4. Is this behavior expected? I've had one person tell me that if I put the url in the import statement within double quote marks (rather than single quote marks), IE5 for Mac will follow the mian.css stylesheet. Is that true?

Any help anyone could offer would be greatly appreciated.

Thanks!
Frank

Rambo Tribble

5:12 am on Apr 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would expect the double quote advice is probably good, since single quotes are recognized in JavaScript, not HTML.

TheDoctor

11:24 am on Apr 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE5 for Mac appears to be following the nn4.css stylesheet which I intended for Netscape 4. Is this behavior expected?

Yes, it is. Have a look at this [centricle.com] for a list of how the various browsers handle the various methods of invoking CSS.