I am using Jquery to add a class to a div like so…
somediv.addClass('correct').removeClass('wrong');
The CSS is as follows
.correct {
background-color: #CDF596;
border: 1px solid #75EE3B;
background-image: url('images/ok32.png') no-repeat right top;
}
The problem is that everything is rendered ok except the image that is not displayed at all.
After some firebugging i found that the line with the image is in strikethrough like so..
background-image: url(‘images/ok32.png’) no-repeat right top;
What is going on here? What am i doing wrong?
You are trying to set
background-repeatandbackground-positioninside thebackground-imageproperty. Either define theno-repeatandright topin their own properties, or use thebackgroundshorthand (in which case you should mergebackground-colorinto it and addscrollafterno-repeat).