# Where to put csshover.htc in rails

**URL:** <https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206>\
**Category:** Rails\
**Created:** [October 15, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206 "2006-10-15T16:32:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roseanne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Post date:** [October 15, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206/1 "2006-10-15T16:32:14Z")

</div>

I try to make a dropdown menu, it works fine in firefox, but not IE.

I found some CSS tutorials from Internet, and get an csshover.htc, which  
works fine with static html page. However, I don’t know where to put it  
and how to use it in my rails application.

Please help, any sample code or links will be greatly appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![roseanne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Post date:** [October 15, 2006, 6:08pm UTC](https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206/2 "2006-10-15T18:08:39Z")

</div>

Put it anywhere under public/

I personally put it under public/stylesheets since you need to  
reference it from your stylesheet.

---

<div class="post-metadata">

**Author:** ![roseanne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Post date:** [October 15, 2006, 11:36pm UTC](https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206/3 "2006-10-15T23:36:42Z")

</div>

Eden Li wrote:

> Put it anywhere under public/
> 
> I personally put it under public/stylesheets since you need to  
> reference it from your stylesheet.

Thanks Eden!

I was putting in the same place, but it did not work for some other  
reasons…

Now, it is working! 🙂

---

<div class="post-metadata">

**Author:** ![roseanne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Post date:** [October 17, 2006, 4:08am UTC](https://www.ruby-forum.com/t/where-to-put-csshover-htc-in-rails/72206/4 "2006-10-17T04:08:07Z")

</div>

I was having the same problems as those listed above.

Make sure that you specify the full path when including the csshover.htc  
in your css file eg:

body {behavior:url("/stylesheets/csshover.htc");}

and then put your csshover.htc in that directory.

Thanks to roseanne for the help!
