Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chosen.js styling not conforming to Bootstrap3 styles

Im using chosen.js v1.0 and am using it in my project with Bootstrap 3 but the styles of my select boxes are not conforming to bootstrap 3 styles at all.

Am I doing anything wrong? I simply invoked the select boxes using
$('#select-input').chosen(); right?

enter image description here

like image 234
cyberjar09 Avatar asked Aug 21 '13 10:08

cyberjar09


2 Answers

Actually, there is someone who created a Bootstrap 3.0 CSS theme for Chosen.

Some screens:

enter image description here

enter image description here

enter image description here

The theme is available in this Github issue Use Gist below.


Edit

I've created a Fiddle using the same HTML as the official Chosen documentation page with the Bootstrap theme applied. (added form-control to all selects and removed style="width:350px;")

And also, I'll be maintaining the theme in this gist: https://gist.github.com/koenpunt/6424137

like image 120
Koen. Avatar answered Oct 15 '22 13:10

Koen.


An alternate stylesheet for Chosen 1.0. This one is supposed to integrate better with Bootstrap 3.0.

Available here http://alxlit.github.io/bootstrap-chosen/

screenshot of chosen alternative

like image 39
Subtletree Avatar answered Oct 15 '22 13:10

Subtletree