Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can jQuery-UI safely be used without the CSS assets?

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?

like image 488
Jay Taylor Avatar asked Jun 02 '11 15:06

Jay Taylor


People also ask

Does jQuery UI has its own CSS library?

jQuery UI includes a robust CSS Framework designed for building custom jQuery widgets. The framework includes classes that cover a wide array of common user interface needs, and can be manipulated using jQuery UI ThemeRoller.

Can I use jQuery UI without jQuery?

If you want to use jQuery. UI you have to include jQuery.

What is jQuery UI CSS used for?

jQuery UI is built on top of the jQuery JavaScript library, offering various interaction features, widgets and themes, implemented using jQuery, HTML, and CSS is one of the popular libraries used for the highly interactive, customized and visually appealing web UI development.

Is jQuery UI still used?

The jQuery project is actively maintained and widely implemented — it's used by 73% of 10 million most popular websites.


1 Answers

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

like image 112
MikeM Avatar answered Nov 06 '22 23:11

MikeM