Stylesheet linked but not loading. Why?

Discussion in 'CSS' started by sar420, Jun 30, 2011.

  1. #1
    Hi all

    I need some help. The CS stylesheet on my webpage here isn't loading

    I've used the following CSS call and the relevant CSS file exists at that location but I can't figure out why its not loading on the site.

    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><link href="style2.css" rel="stylesheet" type="text/css">
    Code (markup):
    Would be grateful if someone can check and guide me on this. Thanks
     
    sar420, Jun 30, 2011 IP
  2. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #2
    it's working just fine on my side...
     
    KnuTz, Jun 30, 2011 IP
  3. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #3
    Oh...I only see a blank white background instead of the background image I've set on my stylesheet. Wonder why?

    Edit: Just checked. The CSS is loading fine in Chrome now but its not loading in Firefox. This is mental!
     
    Last edited: Jun 30, 2011
    sar420, Jun 30, 2011 IP
  4. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #4
    It is fine in FF too.
     
    karthimx, Jun 30, 2011 IP
  5. sar420

    sar420 Notable Member

    Messages:
    3,147
    Likes Received:
    212
    Best Answers:
    0
    Trophy Points:
    230
    #5
    You're right. Its loading fine in all browsers now..I didn't do aything except wait for a few hours...at the time I posted the thread nothing was working..I cleared the browser cache and cookies..but the CSS just wasn't loading. Funny it resolved on its own in a few hours
     
    sar420, Jun 30, 2011 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    You need to clear your cache. After a few hours, your browser probably cleared itself.
     
    drhowarddrfine, Jul 1, 2011 IP
  7. jcyber

    jcyber Active Member

    Messages:
    892
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #7
    i don't see any problem with your code but if you don't put the page and css in same folder(as you link) then it might not work. Thank you.
     
    jcyber, Jul 2, 2011 IP
  8. elixiusx

    elixiusx Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #8
    The code is ok as drhowarddrfine said the problem is maybe the cache. For example Chrome cache everything heheh.
     
    elixiusx, Jul 7, 2011 IP
  9. Trix

    Trix Peon

    Messages:
    192
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #9
    In my local environment, Firefox usually loads the css/js if the file is modified.

    If you want to make sure it takes the latest css, js .... use Ctrl + f5 while loading the page. It will forcefully get all pages from Server and will not use the cache.
     
    Trix, Jul 10, 2011 IP