Kevin
Kevin

Reputation: 25269

Prevent CSS classes from being overridden

I have a project that uses JQuery-UI. I recently found formee, which is a nice framework for building forms. One annoyance is that the formee submit button styling overrides the jquery-ui themed button style. How can I get all of the formee goodness but keep my jquery-ui button style? I realize I can edit the formee CSS to remove the button style, but I'm hoping to avoid that.

Upvotes: 0

Views: 1842

Answers (2)

sg3s
sg3s

Reputation: 9567

You can, as you said yourself, remove the offending CSS, which is what I would recommend.

Alternatively you can give the jQuery UI css classes that apply on the relevant button more specificity than the formee classes. This would be second best solution.

As a last case you could add !important; behind all CSS attributes in the classes for jQuery UI... I really wouldn't recommend this.

Upvotes: 2

Emad Rahnama
Emad Rahnama

Reputation: 1238

use this to bring front:

#your-div-id{
   position:relative;
   z-index:999999;
}

Upvotes: 1

Related Questions