Jump to content

jQuery UI - individual component styling


Omzy

Recommended Posts

I like jQuery, but one thing I don't like is the vast CSS library included with it. There's so many styles that are overriding parent styles and so on. I like to keep my CSS as simple as possible and although splitting up CSS is good practice, I don't particularly like the idea of applying so many different classes to an element or overriding styles more than once.

 

The thing with jQuery is that all the components share a 'base' css file (jquery.ui.theme.css). This file has shared styles such as .ui-widget and .ui-state-default. The problem I'm having is that if I want to style an individual component I inevitably have to modify one of the shared styles, which subsequently affects other components.

 

How can I, for example tell jQuery Tabs to use ONLY css property ID #tabs instead of using the classes "ui-tabs ui-widget ui-widget-content ui-corner-all"?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.