6

Can jQuery-UI safely be used without including the CSS assets? Google hosts the JS file, but I don't see any references on that page to the jQuery-UI CSS resources. What problems or issues can I expect if I include only jquery-ui.js?

4
  • 2
    By "safely," do you mean "will it have the right appearance?" - no. Commented Jun 2, 2011 at 15:57
  • 2
    The CSS files are also hosted: stackoverflow.com/questions/820412/… Commented Jun 2, 2011 at 15:58
  • 2
    One problem is that your site will look horrible. Commented Jun 2, 2011 at 16:04
  • stackoverflow.com/questions/1424981/… Commented Sep 4, 2018 at 22:54

1 Answer 1

8

You'd go from something like this (with jQuery UI CSS):

jquery ui w/css

To something like this (no jQuery UI CSS):

jquery ui w/out css


Use the link @Ates Goral posted in comments

or

Xavi - Links to jQuery UI CSS themes hosted on Google's CDN

for a hosted stylesheet


Update:

For reference sake, the path for the Google CDN jQuery UI CSS is

http:// ajax.googleapis.com/ajax/libs/jqueryui/[version]/themes/[theme]/jquery-ui.css

example:

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css

Versions:

1.5.2, 1.5.3, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0, 1.8.1, 1.8.2, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.8.10, 1.8.11, 1.8.12, 1.8.13

Themes:

base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader

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

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.