# 0.6.4 oddity -- CSS not rendering in Firefox

**URL:** <https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035>\
**Category:** Radiant CMS\
**Created:** [November 13, 2007, 7:08am UTC](https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035 "2007-11-13T07:08:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Gormley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Josh\_Gormley](https://www.ruby-forum.com/u/Josh_Gormley)\
**Post date:** [November 13, 2007, 7:08am UTC](https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035/1 "2007-11-13T07:08:58Z")

</div>

Hopefully I’m simply missing something stupid here, but I just upgraded  
to  
0.6.4, and now my stylesheets are not rendering for Firefox. If I view  
the  
site in IE, or Safari, the site renders properly, but if I use Firefox,  
I do  
not see a styled site. I have tested on Windows XP, Mac OS X 10.4, and  
Ubuntu and in all OSs, Firefox does not render the CSS.

[http://www.gogebiclakeshorelodge.com](http://www.gogebiclakeshorelodge.com)

The stylesheet is definitely there, and you can see it by going to  
[http://www.gogebiclakeshorelodge.com/styles.css](http://www.gogebiclakeshorelodge.com/styles.css)  
In fact, if you look at Firebug, you see the full response text of the  
stylesheet under the Net \> CSS tab, but if you click on CSS \>  
styles.css,  
you only get a generic “There are no rules in this stylesheet.” message.

Also, the apache log seems to be serving the file up just fine:  
216.170.233.69 - - [12/Nov/2007:22:04:20 -0800] “GET /styles.css  
HTTP/1.1”  
200 2910 “[http://www.gogebiclakeshorelodge.com/](http://www.gogebiclakeshorelodge.com/)” “Mozilla/5.0 (Windows;  
U;  
Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9”

Things to note:

- I upgraded from 0.6.0 to 0.6.4. It has been a while since I worked on  
this project, so I’m not sure if it is exactly the 0.6.4 upgrade that  
has  
caused this. I do know that this worked just fine with 0.6.0.
- Hosted on Dreamhost
- I’m fairly knowledgeable about configuring Apache and writing code,  
but am  
fairly new to Rails and Radiant

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![Josh\_Gormley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Josh\_Gormley](https://www.ruby-forum.com/u/Josh_Gormley)\
**Post date:** [November 13, 2007, 7:25am UTC](https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035/2 "2007-11-13T07:25:56Z")

</div>

Could this be caused by the fact that the CSS is being returned as  
content-type text/html instead of text/css? If so, how do I go about  
changing that in the Radiant code?

---

<div class="post-metadata">

**Author:** ![Josh\_Gormley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Josh\_Gormley](https://www.ruby-forum.com/u/Josh_Gormley)\
**Post date:** [November 13, 2007, 7:31am UTC](https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035/3 "2007-11-13T07:31:11Z")

</div>

It really seems like that is your problem.

If so: if you’re using the /styles page on Radiant, make sure it is  
using the stylesheet layout. And make sure the stylesheet layout has  
content-type “text/css”.

You can find the content-type on the “more” link under the name of the  
layout, when editing it.

Hope it helps.

Cheers,  
Marcelo.

---

<div class="post-metadata">

**Author:** ![Josh\_Gormley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Josh\_Gormley](https://www.ruby-forum.com/u/Josh_Gormley)\
**Post date:** [November 13, 2007, 7:31am UTC](https://www.ruby-forum.com/t/0-6-4-oddity-css-not-rendering-in-firefox/120035/4 "2007-11-13T07:31:46Z")

</div>

Ok, I’m an idiot…  
There is a “content type” setting under the Stylesheets section of  
Radiant  
and it was blank. As soon as I put “text/css” in there, the CSS started  
working in Firefox again.

ugh. time for sleep.  
Josh
