jQuery UI Theme not getting applied properly

oshirowanen picture oshirowanen · Jul 9, 2011 · Viewed 9.5k times · Source

UPDATE 2 - RESOLVED:

Got it working: http://jsfiddle.net/7CvZ9/12/

Had to add some classes.

UPDATE 1

It is working a little better, because I have cleared up the resource management section of jsfiddle and only have the following resource now:

http://jsfiddle.net/7CvZ9/5/

This has fixed the dialog, but the sortables still don't seem to have a theme applied.

ORIGINAL QUESTION:

I have setup 2 basic examples in the links below to show the problem. For some reason, I can't seem to get the ui themes to work properly.

http://jsfiddle.net/7CvZ9/ and http://jsfiddle.net/7CvZ9/1/

For example, the dialog theme is messed up, and the sortable theme is not showing at all.

Not sure what I have overlooked.

Answer

Saeed Neamati picture Saeed Neamati · Jul 9, 2011

There could be only few possible reasons you don't get the style applied.

  1. Style reference is not correct
  2. jQueryUI theme is not compatible with jQueryUI version
  3. jQuery messes up with something else (another library)
  4. You have custom styles which interfere with jQueryUI's theme.

And I think your problem is of type 4.