# Stylesheets

**URL:** <https://www.ruby-forum.com/t/stylesheets/101243>\
**Category:** Radiant CMS\
**Created:** [August 3, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/stylesheets/101243 "2006-08-03T18:28:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 3, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/1 "2006-08-03T18:28:30Z")

</div>

Guys I wonder if you can point me in the right direction. I need to  
have  
two separate style sheets. One specially for IE6.

Here is part of my layout:-

 @import "/stylesheets/style.css"; @import "/stylesheets/print.css"; Bird Semple - images/bsweb/favicon.ico"/\> images/bsweb/favicon.ico""\> 

Here is the issue, when I’m using IE6, radiant serves up the standard  
stylesheet, not the specific IE6 version. I created a really simple  
static  
test HTML doc using the identical code and when I viewed this in IE6 it  
was  
sucking in the correct stylesheet. Am I doing something really stupid?

I would really appreciate any pointers

Regards  
Harvey

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 3, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/2 "2006-08-03T20:28:43Z")

</div>

Harvey B. wrote:

> Guys I wonder if you can point me in the right direction. I need to have  
> two separate style sheets. One specially for IE6.

Hmm… the javascript that loads that stylesheet shouldn’t know or care  
if it’s Radiant or something else that’s rendering it. It all happens  
on the client side.

Have you tried taking that static HTML page and putting it in a single  
Radiant page - no filter, no behavior, no snippets or layout - and  
seeing how it renders?

Jay L.

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 4, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/3 "2006-08-04T19:36:50Z")

</div>

> Here is the issue, when I’m using IE6, radiant serves up the standard  
> stylesheet, not the specific IE6 version.

I never use conditional CSS statements myself, but wouldn’t you need  
to set a rule to specifically apply to IE6? As it is, you’ve only got  
a rule for IE7 …

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 4, 2006, 9:12pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/4 "2006-08-04T21:12:59Z")

</div>

this should work for IE 6 - it’s basically saying if less than IE 7,  
serve  
this stylesheet.

As to why it’s not working, i’m stumped as well.

-Cory

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 4, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/5 "2006-08-04T21:19:01Z")

</div>

Wouldn’t you be better off using the html\>body hack?🙂

Josh

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 4, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/6 "2006-08-04T22:49:29Z")

</div>

> this should work for IE 6 - it’s basically saying if less than IE 7, serve  
> this stylesheet.

Sorry, didn’t see the “lt” in the conditional …

---

<div class="post-metadata">

**Author:** ![Harvey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@Harvey\_B](https://www.ruby-forum.com/u/Harvey_B)\
**Post date:** [August 4, 2006, 9:52pm UTC](https://www.ruby-forum.com/t/stylesheets/101243/7 "2006-08-04T21:52:08Z")

</div>

NO hacks!!!
