What happens if you put the class on a sample object manually, like  
this:

<div id="wastebin" class="active_wastebin">something here</div>

Does the background change then? I think you may be running afoul of  
the greater importance that is placed on the ID over the Class, and  
CSS itself might be ignoring you.

If that's the case, you can either increase the importance of the  
active_wastebin rule by making it more specific:

div#wastebin.active_wastebin { ... }

or change your background color to a class-applied style:

#wastebin {
        border-color: #000055;
        border-style: dashed;
        border-width: 2px;
}

.wastebin {
        background-color: #dddddd;
}

<div id="wastebin" class="wastebin">la la la</div>

Walter


On Jan 26, 2008, at 3:21 PM, macsig wrote:

>
> Hello, I'm using scriptacolous to add drag&drop feature to my website.
> I'm fallowing the demo (http://demo.script.aculo.us/shop) and
> everything is fine. Now I would like adding to the waste bin the
> background color even when is not active  but if I do it doesn't work
> anymore. I mean the the hoverclass is not showed.
> Is it possible to have background color when the waste bin is active
> and not active
>
> Below my code
>
>       <%= drop_receiving_element "wastebin",
>                       :update => "category_list", :url => { :action =>
> "remove_category" },
>                       :accept => "category_item", :hoverclass => 
> "active_wastebin",
>                       :before => "Element.hide(element)",
>                       :loading => "Element.show('indicator')",
>                       :complete => "Element.hide('indicator')" %>
>
> CSS
>
> #wastebin {
>       border-color: #000055;
>       border-style: dashed;
>       border-width: 2px;
>       background-color: #dddddd;
> }
>
> .active_wastebin {
>       background-color: #FFFFFF;
> }
>
>
> Thank you and have a nice day !!
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to