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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.