Results 1 to 3 of 3

Thread: no style sheet attached

  1. #1
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question no style sheet attached

    Writing my first dynamic website and all seemed fine testing on my local server but then I tried uploading it to the big web and WHAM! problems...

    My site is here: http://www.carpecal.com and as you could see there are supposedly no style sheets attached. Viewing the page source i can even select and download the sheets i attached... Any and all help is much appreciated !

    I'd insert the raw code here but can't seem to get around this 5-images max limitation, even after deleting all image code....

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm getting two errors in Firefox developer's tools:

    Error: The stylesheet http://www.carpecal.com/scripts/carpe_style.css was not loaded because its MIME type, "application/x-httpd-php", is not "text/css".
    Source File: http://www.carpecal.com/scripts/buffer.php
    Line: 0

    Error: The stylesheet http://www.carpecal.com/scripts/menu-style.css was not loaded because its MIME type, "application/x-httpd-php", is not "text/css".
    Source File: http://www.carpecal.com/scripts/buffer.php
    Line: 0
    But I see in the source code of the page the MIME types are set correctly:

    Code:
    <link href="carpe_style.css" rel="stylesheet" type="text/css" />
    <link href="menu-style.css" rel="stylesheet" type="text/css" />
    This can only mean that something on the server side has overridden them. Unless it's something you did, or have access to and know how to change, or you own you own host, you will need to ask your host how to correct the problem.
    Last edited by jscheuer1; 10-25-2011 at 09:25 AM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ahh, turns out the css file needed a header at top of
    header('Content-type: text/css');
    as per this forum: http://www.webmasterworld.com/php/3123060.htm. thanks for the speedy reply john !

Bookmarks

Posting Permissions

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