Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    don
    don is offline
    New Coder
    Join Date
    Sep 2002
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Am I just being stupid?

    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>

  • #2
    New Coder
    Join Date
    Nov 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, is your actual css file called Main.css or is it called main.css?

    Neil

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    Canada (eh)
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Is it just me ...

    <link rel="stylesheet" href="Main.css" type="text/css" />

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

    Listen! You smell that?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Is it just me ...

    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.

  • #5
    New Coder
    Join Date
    Oct 2002
    Location
    Canada (eh)
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ah ...

    You learn something new every day. Or, in my case, a lot of somethings.

    Listen! You smell that?

  • #6
    don
    don is offline
    New Coder
    Join Date
    Sep 2002
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know exactly what changed, but everything seems to work now. ??? Stranger things have happened.

    Thanks for the help.

    -Don

  • #7
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •