# Style Sheet Unavailable on Radiant Mental

**URL:** <https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398>\
**Category:** Radiant CMS\
**Created:** [May 5, 2007, 5:27am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398 "2007-05-05T05:27:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 5:27am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/1 "2007-05-05T05:27:15Z")

</div>

Hi All,

Was just doing some minor edits in the ‘styles’ pages when I refreshed  
and  
noticed that the site styling is gone

=\> [http://www.fourwallsandaroof.com.au](http://www.fourwallsandaroof.com.au)

Checked the production\_log and the authorised access has only been  
myself  
and hopefully my boss, we have edited no radiant files. What ids a  
possible  
cause of this and where do I check that the correct style sheet  
(styles.css)  
is being referenced?

At least the site is still up, that’s a bonus!

cheers, Ben.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 6:44am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/2 "2007-05-05T06:44:18Z")

</div>

After some further testing on WinXP/Linux, seems that only Firefox fails  
to  
render using the style sheet. Opera 9.2 and IE6.0 work as per usual.

Any ideas?

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 6:49am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/3 "2007-05-05T06:49:19Z")

</div>

Ben M. wrote:

> After some further testing on WinXP/Linux, seems that only Firefox fails to  
> render using the style sheet. Opera 9.2 and IE6.0 work as per usual.
> 
> Any ideas?

By chance is the Content-Type wrong on your stylesheet layout? It should  
be set to text/css.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 6:54am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/4 "2007-05-05T06:54:20Z")

</div>

this is straight out of the source from a Firefox page:

this is straight out of the source from an IE page:

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 6:52am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/5 "2007-05-05T06:52:20Z")

</div>

Maybe so, but nothing has changed, in regard to the radiant files, only  
being editing via the /admin/login and Firefox worked fine this morning,  
and  
now doesn’t.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 9:00am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/6 "2007-05-05T09:00:25Z")

</div>

> Was just doing some minor edits in the ‘styles’ pages when I refreshed and  
> noticed that the site styling is gone
> 
> =\> [http://www.fourwallsandaroof.com.au](http://www.fourwallsandaroof.com.au)
> 
> Checked the production\_log and the authorised access has only been myself  
> and hopefully my boss, we have edited no radiant files. What ids a possible  
> cause of this and where do I check that the correct style sheet (  
> styles.css) is being referenced?

> From here – Camino 1.5.1pre – it looks like you’re serving your  
> stylesheets with your default site layout wrapped around them:

[http://www.fourwallsandaroof.com.au/styles.css](http://www.fourwallsandaroof.com.au/styles.css)

Go check the styles page in admin, and make sure that layout is set to  
Stylesheet. That should do the trick.

Good luck…

–  
Chris B., Hypsometry  
[http://hypsometry.com/](http://hypsometry.com/)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 6, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/7 "2007-05-06T13:45:32Z")

</div>

Hm, I wish the structure for the stylesheets would change in Radiant.

Wouldn’t it be better in the stylesheets and rss feeds code where  
placed under Layouts. Insted of using \<r:content /\> under Layouts to  
link to the Page etc.

–  
Gustaf Lindqvist  
[http://lindq.se](http://lindq.se)

5 maj 2007 kl. 15.47 skrev John W. Long:

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/8 "2007-05-05T15:48:52Z")

</div>

Ben M. wrote:

> this is straight out of the source from a Firefox page:
> 
> this is straight out of the source from an IE page:

You should have a layout just for pages that are stylesheets.

To create a Stylesheet layout:

1. Switch to the layouts tab

2. Create a new layout and call it “Stylesheet”

3. Set the body of the layout to:

4. Click the “More” link underneath the title of the stylesheet layout  
and set “Content-Type” to “text/css”.

5. Save the layout

6. Switch back over to your “styles.css” page

7. Set it’s layout to “Stylesheet”

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 10, 2007, 3:34am UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/9 "2007-05-10T03:34:12Z")

</div>

Sean C. wrote:

> I see what you mean, but Layouts are not navigable/serve-able content,  
> they are wireframes for the structure of content. XML feeds and  
> Stylesheets are just degenerate cases.

I’m with Sean. Pages really means “all text files” and Layouts are for  
enhancing (or wrapping) them.

For instance, I have a site where I’m using two page parts to store a  
single javascript page. One holds commented, human-readable JS, the  
other is in a tab called “compressed.”

My JS layout includes the logic to serve up the compressed JS file if it  
exists (along with some added copyright stuff), otherwise it serves the  
standard page. So this method does add some neat options.

That isn’t to say that there aren’t issues with treating all text files  
as a generic “page.” There are different types of pages and users view  
them differently. I think Radiant should too.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 6, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/style-sheet-unavailable-on-radiant-mental/103398/10 "2007-05-06T18:43:56Z")

</div>

I see what you mean, but Layouts are not navigable/serve-able content,  
they are wireframes for the structure of content. XML feeds and  
Stylesheets are just degenerate cases.

Sean
