| | |
FireFox refuses
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 101
Reputation:
Solved Threads: 9
Yesterday I discovered that FireFox refused to read CSS files that did not have the CSS extension.
I have a basic CSS that's always read, based on the CSS extension (I have a script that automatically loads all CSS files found in the local directory).
Then I had a set of files with the extension .css2, and the script selects ONE of them in a random fashion.
After some trial and error I found that the files were not read as long as they did not have the extension .css.
I found another solution but now I wonder: Is this a standard restriction, or is it just FireFox? (I use 3.0.13).
I use the standard statement:
I have a basic CSS that's always read, based on the CSS extension (I have a script that automatically loads all CSS files found in the local directory).
Then I had a set of files with the extension .css2, and the script selects ONE of them in a random fashion.
After some trial and error I found that the files were not read as long as they did not have the extension .css.
I found another solution but now I wonder: Is this a standard restriction, or is it just FireFox? (I use 3.0.13).
I use the standard statement:
HTML and CSS Syntax (Toggle Plain Text)
<link rel='stylesheet' type='text/css' href='filename' />
Last edited by ingeva; Aug 31st, 2009 at 7:09 am.
Yes, I'm running Ubuntu. Of course.
Browsers don't typically about the extension of a css style as long as the MIME type is correct.
This is sent using HTTP headers, and can be changed using a server-side scripting langage, or an htaccess override for .css2 files.
In your case, the server is seeing css2 as unknown and sending it out as text/plain instead of text/css.
More Information...
This is sent using HTTP headers, and can be changed using a server-side scripting langage, or an htaccess override for .css2 files.
In your case, the server is seeing css2 as unknown and sending it out as text/plain instead of text/css.
More Information...
CodeJoust! Design + Development - Proud User of Ubuntu
•
•
Join Date: Jul 2008
Posts: 101
Reputation:
Solved Threads: 9
•
•
•
•
In your case, the server is seeing css2 as unknown and sending it out as text/plain instead of text/css.
The easiest solution in my case will be to include these CSS specification in the source (html) file.
Yes, I'm running Ubuntu. Of course.
![]() |
Similar Threads
- Help needed in figuring out validation issues !! (HTML and CSS)
- Firefox and chained select menus (JavaScript / DHTML / AJAX)
- Web Developer for IE and Firefox add ons (Web Development Job Offers)
- wrapping a pre tag (HTML and CSS)
- overlapping divs (HTML and CSS)
- JApplet display problem (Java)
- Completely uninstalling firefox (Web Browsers)
- IE And Page Cannot be displayed Problem (Windows NT / 2000 / XP)
- server 2003 sp1 (Windows NT / 2000 / XP)
Other Threads in the HTML and CSS Forum
- Previous Thread: How to create a website
- Next Thread: Good web page designer for Linux
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





