What are reasons that a webserver might not load my CSS for my web page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Downing

    #1

    What are reasons that a webserver might not load my CSS for my web page?

    Hello. Over the past few years I have been teaching myself to write/code web pages from scratch. The code I've written (last I checked) passes all of the W3C's validators, including the one for CSS. Locally, the site displays itself flawlessly.

    Upon loading the web site to two separate servers (In case there was some problem on the first), I found that everything loads expected except for the CSS... Which constitutes for about 80% of the site's design.

    The site is coded in XHTML/CSS2. The CSS (as well as javascript) are loaded from directories that are present in the directory containing index.html and the other main pages. I have checked the charset/encodings, all metadata, pretty much everything. I'm not sure what I'm missing.

    Also, the servers are unix-based. I've tried re-encoding files to UTF-8, but nothing has changed. Several complete clearing/re-upload attempts have been made against the advent of a corrupted file.

    Do any of you have a clue what is going on here? I may be able to code HTML, but this is my first time trying to get it online.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    several reasons I can think of
    - file not uploaded
    - file corrupted (though improbable)
    - filename doesn’t match (UNIX is usually case-sensitive)
    - access denied
    - syntax error in file (just to mention it)
    - file in wrong directory/server
    - old file version cached

    PS. I doubt you’re using XHTML

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      Firebug on Firefox will tell you exactly what the browser is trying to fetch and what the server is trying to send or not. With a link, we can tell what's happening.

      Comment

      • Paul Downing

        #4
        Problem Resolved

        To Dormilich:
        Thank you! It was the Unix/Case-sensitive detail. I was completely ignorant of that fact and it made all the difference.

        To drhowarddrfine:
        I have seen that tool mention in a couple of places. I will definitely try it out.


        Thanks to both of you!^^

        Comment

        • numberwhun
          Recognized Expert Moderator Specialist
          • May 2007
          • 3467

          #5
          May I throw one more suggestion in here?

          If you are going to ask why your code isn't working, its always a good idea to post the code so that those people trying to help you can examine it and possibly give suggestions.

          Regards,

          Jeff

          Comment

          Working...