1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS not ... loading?

Discussion in 'HTML & Website Design' started by vitaminp, Apr 17, 2007.

  1. #1
    ok im not sure what the problmew is but its a little emergency

    i have recently started to change my page to fit with the w3c standard and i was testing everything was working ok in firefox... however a friend has just told me that the CSS is not loading in IE...

    check this page:
    http://xoog.net

    ... in IE a specific CSS file is not loading,
    in FF it loads fine

    heres my code:

    <link href="http://xoog.net/css/layout.css" rel="stylesheet" type="text/css" />

    please take a look for me - i just cant figure it out?! :-s

    ... Opera isnt working in the same way, the css file is definetley there.
     
    vitaminp, Apr 17, 2007 IP
  2. Luuk

    Luuk Peon

    Messages:
    141
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe put this in the head?

    <link href="http://xoog.net/css/layout.css" rel="stylesheet" type="text/css" />

    Your css file is not valid, so i would check that out also.

    I dont know much about this but maybe this helps...:)

    Edit: Found a possible solution.

    Put this in your htaccess:

    AddType text/css .css
    Code (markup):
     
    Luuk, Apr 17, 2007 IP
  3. vitaminp

    vitaminp Peon

    Messages:
    202
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah its in the head - its really confusing me at how it did work, yet now it doesnt - but still works fine in Firefox
     
    vitaminp, Apr 17, 2007 IP
  4. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I always use

    <link rel="stylesheet" type="text/css" href="yourfilepath">
    Code (markup):
    give that a try
     
    bacanze, Apr 17, 2007 IP
  5. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't think IE likes url's in the <head> try and use a relative path as mentioned above.

    .add type css won't make a difference as this will already be in the servers config file, httpd.conf. If it was missing no css would load i any browser.
     
    Valve-Hosting, Apr 17, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    IE ignores the server response header, and will 'sniff' the file content. It's supposed to be a "feature". It's a royal PITA.

    cheers,

    gary
     
    kk5st, Apr 17, 2007 IP
    Valve-Hosting likes this.
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    I looked at this dark and early this morning, and found IE to be styled the same as Firefox. Figured you had fixed whatever ailed you.

    On closer inspection, the only particular difference is that a left column ad in Firefox is not opening.

    cheers,

    gary
     
    kk5st, Apr 17, 2007 IP
  8. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Ah, thats whats buggering up my AJAX then, cheers :)
     
    Valve-Hosting, Apr 18, 2007 IP
  9. vitaminp

    vitaminp Peon

    Messages:
    202
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    yes i fixed the problem, for future reference (somebody else might find this useful), the problem is that i started some javascript with <!--, but i accidentally deleted the --> before </script>

    also at bacanze, remember to close your <link> tag with a /> at the end =)
     
    vitaminp, Apr 18, 2007 IP