MozillaZine

CSS issues

Discussion of general topics about Mozilla Firefox
Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted September 20th, 2006, 8:33 am

Hope this will get answered in ths forum.

I am trying to build a site but firefox will not read the css file for two of my scripts. regardless of the template I use Firefox will not render the pages properly.

IE will render the page as it should be but I use Firefox!

check out these links

www.karecom.com/family
www.karecom.com/article
<a href="www.allbaby.biz">All About Baby</a>.

sheehan
 
Posts: 1398
Joined: March 30th, 2004, 4:07 pm
Location: Canada

Post Posted September 20th, 2006, 8:45 am

Your server is sending the css files with a MIME-Type of text/html instead of text/css. You just need to re-configure your server settings.

Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted September 20th, 2006, 9:49 am

Cool! Thanks
<a href="www.allbaby.biz">All About Baby</a>.

Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted October 9th, 2006, 4:54 pm

I know that it has been a while since this post but I just only checked with my service provider and the settings of my account are as such that the css file is being sent text/css. any other ideas?

Cheers,

Krispie

Here is a list of server settings for those in the know

application/andrew-inset ez
application/atom+xml atom
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/mathml+xml mathml
application/msword doc
application/octet-stream bin dms lha lzh exe class so dll dmg
application/oda oda
application/ogg ogg
application/pdf pdf
application/postscript ai eps ps
application/rdf+xml rdf
application/smil smi smil
application/srgs gram
application/srgs+xml grxml
application/vnd.mif mif
application/vnd.mozilla.xul+xml xul
application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt
application/vnd.rn-realmedia rm
application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc .wmlc wmlc
application/vnd.wap.wmlscriptc .wmlsc wmlsc
application/voicexml+xml vxml
application/x-bcpio bcpio
application/x-cdlink vcd
application/x-chess-pgn pgn
application/x-cpio cpio
application/x-csh csh
application/x-director dcr dir dxr
application/x-dvi dvi
application/x-futuresplash spl
application/x-gtar gtar
application/x-hdf hdf
application/x-httpd-php .php .php4 .php3 .phtml
application/x-httpd-php-source .phps
application/x-javascript js
application/x-koan skp skd skt skm
application/x-latex latex
application/x-netcdf nc cdf
application/x-pkcs7-crl .crl
application/x-sh sh
application/x-shar shar
application/x-shockwave-flash swf
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar .tgz tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo texi
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-ustar ustar
application/x-wais-source src
application/x-x509-ca-cert .crt
application/xhtml+xml xhtml xht
application/xml xml xsl
application/xml-dtd dtd
application/xslt+xml xslt
application/zip zip
audio/basic au snd
audio/midi mid midi kar
audio/mpeg mpga mp2 mp3
audio/x-aiff aif aiff aifc
audio/x-mpegurl m3u
audio/x-pn-realaudio ram ra
audio/x-wav wav
chemical/x-pdb pdb
chemical/x-xyz xyz
image/bmp bmp
image/cgm cgm
image/gif gif
image/ief ief
image/jpeg jpeg jpg jpe
image/png png
image/svg+xml svg
image/tiff tiff tif
image/vnd.djvu djvu djv
image/vnd.wap.wbmp .wbmp wbmp
image/x-cmu-raster ras
image/x-icon ico
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
model/iges igs iges
model/mesh msh mesh silo
model/vrml wrl vrml
text/calendar ics ifb
text/css css
text/html .shtml html htm
text/plain asc txt
text/richtext rtx
text/rtf rtf
text/sgml sgml sgm
text/tab-separated-values tsv
text/vnd.wap.wml .wml wml
text/vnd.wap.wmlscript .wmls wmls
text/x-setext etx
video/mpeg mpeg mpg mpe
video/quicktime qt mov
video/vnd.mpegurl mxu m4u
video/x-msvideo avi
video/x-sgi-movie movie
x-conference/x-cooltalk ice
<a href="www.allbaby.biz">All About Baby</a>.

old FatJohn
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted October 9th, 2006, 6:01 pm

JavaScript Console wrote:Error: The stylesheet http://www.karecom.com/family/templates ... /style.css was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://www.karecom.com/family/
Line: 0

Backed up by this
http://web-sniffer.net/?url=http%3A//ww ... /style.css

Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted October 9th, 2006, 8:31 pm

I am sorry for my ignorance but what do I do to fix it?

Do I go off on my host or is there something I can change within my server settings?

Cheers,
Krispie
<a href="www.allbaby.biz">All About Baby</a>.

old FatJohn
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted October 10th, 2006, 3:38 am

Since it's an Apache server it shouldn't be too hard to configure it yourself. Make a file called .htaccess and throw it to the root of the server, it's contents: AddType text/css css

Here's a tutorial on the subject http://www.javascriptkit.com/howto/htaccess.shtml I'm sure the folks who provide you the service will also be happy to do it for you if you ask them.

Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted October 10th, 2006, 8:22 am

Fat John, you da bomb. Thank you very much
<a href="www.allbaby.biz">All About Baby</a>.

Krispie
 
Posts: 6
Joined: September 20th, 2006, 8:24 am

Post Posted October 10th, 2006, 10:09 pm

Well FatJohn I just thought I would let you know that it officially worked. The .htaccess file was already in existance in both the root and the Public_HTM directory so I changed both to what you had posted and t worked like a hot damn.

I really appreciate that, you accomplished what those at PHP directory and Blue Host failed to figure out over the past month.

Cheers,
Krispie
<a href="www.allbaby.biz">All About Baby</a>.

old FatJohn
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted October 11th, 2006, 2:53 am

:banana:

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 8 guests