I tried to make work my library and I found that "background-color" CSS property not work when it used by jQueryUI. On the other hand if I simple use the "background" property with color value.
I make examples on jsfiddle:
- Working example
- Not working example
However is I simply make a class and apply to a div element in the html markup it works well.
Code:
HTML markup. Same in both cases:
<div id="selectable">
<div class="ui-widget-content">1</div>
<div class="ui-widget-content">2</div>
<div class="ui-widget-content">3</div>
</div>
Javascript. Also same in both case:
$(document).ready(function(){
$("#selectable").selectable();
});
CSS working scenario:
.ui-selected
{
background: rgb(255,0,0);
border: 1px solid yellow;
width: 100px;
height: 30px;
}
CSS non-working scenario:
.ui-selected
{
background-color: rgb(255,0,0);
border: 1px solid yellow;
width: 100px;
height: 30px;
}