8

I've implemented the jQuery-ui tabs widget and it works great. However, it does some style things I don't like. Specifically the .ui-corner-all is rounded, and I don't want that.

What is the "correct" way to override this. Should I use a theme?

Does someone have a good beginner tutorial on how to use/create ui themes?

1

3 Answers 3

11

try using important

.ui-corner-all{
border: 0px !important;
}

in custom style sheet or head of the doc.

Sign up to request clarification or add additional context in comments.

Comments

2

I would recommend against trying to override JQuery UI's styling manually, and instead opt to use JQuery UI's ThemeRoller page.

Modifying the theme using the ThemeRoller will ensure maximum compatibility for future upgrades, rather than overriding certain styles just to have them changed or conflict next time you try to upgrade to a newer version of JQuery UI.

2 Comments

But then you lose the luxury of loading the theme via CDN.
Unfortunately this is true. It's a case of weighing up the pros and cons based on how much you're trying to modify.
0

Do you have a stylesheet that controls the parent element, or the entire page? I had some success with something like:

.[element, class, id, whatever] { border: inherit }

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.