Jump to content

[SOLVED] Netscape and Mozilla Dont See my CSS Files!


vajra_hendry

Recommended Posts

Hi Guys, 

 

Simple one here I expect!  I have written some pages and used CSS to do the styling, they work well in IE (v7).  Thought I'd see how they render in Netscape (beta 9b.3) and Mozilla (2.0.0.6)

 

Here is the Link to the CSS :

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<HTML>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css\layout.css" media="all" />
</head>

 

err any ideas?  The CSS does isnt being used, as all the graphics just line up!!  Its a mess !! haha

 

Thanks a lot

Well I found out the answer.

 

I just needed to change the slash from :

 

<link rel="stylesheet" type="text/css" href="css\layout.css" media="all" />

 

To :

 

<link rel="stylesheet" type="text/css" href="css/layout.css" media="all" />

 

Now I notice that the differnet browsers view the positioning of object quite differently!! JOY !!

 

Well hope this helps somone anyway.

Yes, IE will automatically convert a backslash to a forward slash.

 

It's always best to use a forward slash as unix/linux paths are delimeted by a forward slash, and although Windows uses a backslash as it's delimiter, it also understands a forward slash.  Try it out.

 

Regards

Huggie

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.