css doesn't work

Discussion in 'CSS' started by suze, May 8, 2009.

  1. #1
    I am having trouble after I upload to my site. The CSS works well as long as I am checking the version on my computer, but as soon as I upload it, it quits. Both my CSS and html have validated on the W3C checker. I have not done alot of sites but I have never had this problem before. It is consistant in IE, Firefox and Google
     
    suze, May 8, 2009 IP
  2. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Your CSS quits?

    Are you sure that you have entered the correct path to the style sheet?

    If both the HTML document and the CSS document are in the same directory, the path should be expressed like this:

    <link rel="stylesheet" type="text/css" href="[B]stylesheet.css[/B]" />
    Code (markup):
    If, however, they are in separate directories, then the directory in which the CSS document resides should be defined like this:

    <link rel="stylesheet" type="text/css" href="[B]directory_name/stylesheet.css[/B]" />
    Code (markup):
    Apart from that, I can't think of anything else.
     
    Masterful, May 9, 2009 IP
  3. normalfx

    normalfx Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe it's a problem about server cache issue. That's wired I know but I used to faced this problem.
     
    normalfx, May 14, 2009 IP
  4. snshr

    snshr Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    best for you is to install firebug extension in firefox and check some another page, for exampel mine: www.sns.hr
     
    snshr, May 14, 2009 IP
  5. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Check your css link tag. There's probably a typo in there somewhere.
     
    qazu, May 15, 2009 IP
  6. OmegaMan

    OmegaMan Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Make sure you wrote the href to the CSS file correctly. If some of the letters are capitalized, so must the href....
     
    OmegaMan, May 15, 2009 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    Question nobody else here seems to be asking... URL?

    Without seeing the code in question everyone is just wildly guessing.
     
    deathshadow, May 15, 2009 IP