Forum Moderators: not2easy

Message Too Old, No Replies

Netscape not displaying my css

         

ghall123

4:40 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



Hi all.

I have an application which validates succesfully to xhtml1.1. - at the top of our page we have the following deceration:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">

The stylesheet is imported by:
<link type="text/css" media="screen" rel="stylesheet" href="/myCss.css"/>

or by...

<style type="text/css" media="screen">
<!--
@import url("../myCss.css");
-->
</style>

Either way, when we use Netscape, the page displays poorly as the stylesheet is not picked up.

It's always fine in IE6.

Any suggestions please as to why this might happen please?

carguy84

4:50 pm on Mar 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try adding in the domain name to eliminate path being a problem.

Also, add a space here:
.css"/>
.css" />

it annoying me ;)

ghall123

5:11 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



Try adding a domain name?

Sorry could you explain what you mean please?

carguy84

6:57 pm on Mar 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



@import url("http://www.company.com/myCss.css");

<link type="text/css" media="screen" rel="stylesheet" href="http://www.company.com/myCss.css" />

ghall123

11:44 am on Mar 9, 2005 (gmt 0)

10+ Year Member



Ok. this problem is persisting.

It only happens in Netscape when I use the following HTML decleration:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">

I'm wondering if the stylesheet also has to conform to a standard. Here's an example of mine - is there anything wrong with it please? It's just a simple file:
-------------------------
body {
background-color: #eef9f9;
}
.normal {
color:#666;
font-size:10px;
line-height:14px;
font-weight:700;
font-family:verdana, arial, helvetica, sans-serif;
margin:0;
padding:0;
}
-------------------------

Many thanks for any advice.

carguy84

11:54 am on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Aren't you missing a few letters/numbers in your font color? Not that I think it's the problem, but...

ghall123

12:17 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



Maybe, but that's not the problem, no.