View Full Version : 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....
jscheuer1
10-25-2011, 09:19 AM
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:
<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.
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 !
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.