1

I'd like create a new CSS class but based (inherited) from ui-state-default from jQuery UI. I'd like change some parameters like the backgroud. As background by default it's a picture, in jQuery UI class, I'd like keep all properties except this background.

Any idea ?

Thanks,

2 Answers 2

0

It sounds like you want to somehow "inherit" the ui-state-default class. I don't think you can inherit a CSS class like you do in a normal OO language, but you could achieve this effect by creating another class, say, foo and use both of the classes in your elements and in your CSS definition.

HTML:

<div class="ui-state-default foo">...</div>

CSS:

.ui-state-default.foo {
  background: red;
}

One thing you need to make sure is that, the css definition has more specificity than the one generated by the ThemeRoller. If you are not familiar with the CSS cascading rules, have a read.

0

try

background{none !important;}
1
  • I clarify my question. I want created a class based on a jQuery UI theme class but need to change a property. If I change theme a create one via the ThemeRoller my class as the same characteristics expect the baclground
    – TheBoubou
    Aug 28, 2011 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.