PDA

View Full Version : CSS - external link problem with Netscape


citizenkean
01.10.2002, 10:12
I am having difficulty getting Netscape 7 to recognize the style sheet that I have linked to this page. It works fine in Explorer, but makes no effort to render the text correctly in Netscape. Below is the link if you check the source code you will notice I have the style sheet linked just after the <head> tag.

http://www.radiumproductions.com/nlac/


Any help would be greatly appreciated


kjk

Sergi
01.10.2002, 10:38
<link href="css/basetext.css" rel="stylesheet" type="text/css">
<LINK rel="stylesheet" type="text/css" href="css/basetext.css">

why twice?

cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][meddle][/url:ujj27o9r1s] || [url="http://gen7es.net"][gen7es][/url:ujj27o9r1s] || [url="sergi@dhtmlcentral.com"][e][/url:ujj27o9r1s]
</font id=green>

citizenkean
01.10.2002, 10:45
I wasnt sure if the order in which the commands were placed had any bearing on why it didnt work. Apparently it does'nt. I still hae no clue whats wrong.

Sergi
01.10.2002, 11:54
what exactly dont you see. I see the same in ie6 than ns7 (well, moz1.1). Maybe if you add a DTD and delete that duplicated link...

cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][meddle][/url:q427u8txxd] || [url="http://gen7es.net"][gen7es][/url:q427u8txxd] || [url="sergi@dhtmlcentral.com"][e][/url:q427u8txxd]
</font id=green>

citizenkean
01.10.2002, 12:47
well here's what I don't see in NS7: The file that is referenced( basetext.css ) controls the look of the text(font , color, size, link properties, etc.) In IE the text shows up with the correct properties that the imported css. file is meant to create. However in NS 7 all i get is regular black text, with default size and 'times roman' font.

Is there a possibilty that something is not enabled in my NS 7 Browser?

kjk

Sergi
01.10.2002, 12:59
when you use an external css file, you dont need to use the style tags in that file. You are doing so:

<pre id=code><font face=courier size=2 id=code> <style type="text/css" >
p{color:white;font-family:arial; font-size:8pt;}
A:link {text-decoration: none; color: orange}
A:visited {text-decoration: none; color: orange}
A:active {text-decoration: none; color: orange}
A:hover {text-decoration: underline; color: red;}
</style></font id=code></pre id=code>

get rid of them

cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][meddle][/url:ungobukw9r] || [url="http://gen7es.net"][gen7es][/url:ungobukw9r] || [url="sergi@dhtmlcentral.com"][e][/url:ungobukw9r]
</font id=green>

citizenkean
01.10.2002, 13:11
hey that works perfect ..thanks so much for takin the time to check that out for me!

kjk

Sergi
01.10.2002, 14:10
no prob mate, glad it worked.

cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][meddle][/url:c2j9zccle8] || [url="http://gen7es.net"][gen7es][/url:c2j9zccle8] || [url="sergi@dhtmlcentral.com"][e][/url:c2j9zccle8]
</font id=green>