nick wrote:
Bernard wrote:
Hi Nick,
that is because the web server that served the style sheet file does
not have a mime type "text/css" configured.
Such a configuration would enable the web server to set this mime type
header depending on the file extension of the file.
Bernard
nick <nb***@removeth is.hotmail.com> wrote:
The warning message is:
Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "applicatio n/octet-stream",
is not "text/css".
What cause the problem? There is not "applicatio n/octet-stream" in the
html or css code...
Thanks, looks the script works. any serious problem if don't config it?
The MIME type sent by your server to a browser for files ending in .CSS won't
affect your script. However, everyone who visits your Web site will get
warnings in Gecko-based browsers everytime you include a file that ends in
..CSS on a Web page. If you have control over the server, fix it. For example,
to fix it in apache, ensure:
"text/css css"
exists in "mime.types " (should be found in the same directory as httpd.conf).
Of course, you also have to ensure apache is using mod_mime and httpd.conf is
using the right mime.types:
<IfModule mod_mime.c>
# your path will/may vary
TypesConfig /usr/local/etc/apache/mime.types
</IfModule>
Pretty much every reasonable default build of apache should come with this
stuff configured as shown above, unless you somehow managed to build apache
without mod_mime or you moved or edited mime.types.
To add/modify MIME types in IIS 4 and 5, this URL seems to provide the
details:
<url:
http://www.microsoft.com/technet/pro...y/mimeiis.mspx
/>
--
| Grant Wagner <gw*****@agrico reunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html