1

Should I connect both jquery-ui.js and jquery-ui.css files if the page looks fine with jquery-ui.js but without jquery-ui.css?

Should I care about jquery-ui.css?

P.S. jquery-ui.js is definitely needed for my slider, but the slider looks fine even without jquery-ui.css.

Thanks.

1
  • If it works fine then it's probably not necessary. It all depends on what UI features you're using... Commented Sep 27, 2012 at 10:01

2 Answers 2

2

Yes, you should.

Most of the jQuery UI widgets depend on style rules defined in that file to perform their layout. Omitting it will give you strange bugs such as, for instance, dialog boxes not being properly rendered, or tabs and accordions not laying out correctly.

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

Comments

1

Yes, For example if you use ui.datepicker on your page,the style of the calender will not be taken if you dont include css file also in your page.

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.