...

View Full Version : Am I just being stupid?



don
11-13-2002, 06:36 PM
Granted I'm somewhat new at this, but this is wacky. I'm linking to an external CSS file in my documents. I cannot get them to work when I browse the HTML files from Windows Explorer.

They all display fine in DreamWeaver and they display fine when I view them in a browser launched from DreamWeaver. But when I click on a hyperlink from that browser they don't work, even if the hyperlink is to the same page that I'm on!

The file is in the same directory as the HTML docs referencing it. Here is how I'm linking it:

<head>
<title>DoD Mentor-Prot&eacute;g&eacute; Conference 2003</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="Main.css" type="text/css" />
</head>

Motif Webs
11-13-2002, 06:53 PM
Hmm, is your actual css file called Main.css or is it called main.css?

Neil

Majik_Dance
11-13-2002, 07:41 PM
<link rel="stylesheet" href="Main.css" type="text/css" />

The / after css" - I do not think that should be there, right?

:) :)

Roy Sinclair
11-13-2002, 07:50 PM
Originally posted by Majik_Dance
<link rel="stylesheet" href="Main.css" type="text/css" />

The / after css" - I do not think that should be there, right?

:) :)

Yes it should be there. It's presence is one of the required differences between xHTML and HTML. In HTML it's optional and nearly never used but in xHTML it's required.

Majik_Dance
11-13-2002, 07:53 PM
You learn something new every day. Or, in my case, a lot of somethings.

:o

don
11-13-2002, 08:00 PM
I don't know exactly what changed, but everything seems to work now. ??? Stranger things have happened.

Thanks for the help.

-Don

Spookster
11-13-2002, 08:26 PM
And on another note...the subject line "Am I just being stupid? is not a proper subject line as per our forums posting guidelines. A proper subject line would have been "Linking to an external CSS file". Please review our forum posting guidelines before posting any more.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum