Twitter bootstrap 3.0 icon change on collapse

The collapse events are handled differently in Bootstrap 3. Now it would be something like: $(‘#collapseDiv’).on(‘shown.bs.collapse’, function () { $(“.glyphicon”).removeClass(“glyphicon-folder-close”).addClass(“glyphicon-folder-open”); }); $(‘#collapseDiv’).on(‘hidden.bs.collapse’, function () { $(“.glyphicon”).removeClass(“glyphicon-folder-open”).addClass(“glyphicon-folder-close”); }); Demo: http://www.bootply.com/73101

Responsive timeline UI with Bootstrap3

“Timeline (responsive)” snippet: This looks very, very close to what your example shows. The bootstrap snippet linked below covers all the bases you are looking for. I’ve been considering it myself, with the same requirements you have ( especially responsiveness ). This morphs well between screen sizes and devices. You can fork this and use …

Read more

How to show Bootstrap table with sort icon

You could try using FontAwesome. It contains a sort-icon (http://fontawesome.io/icon/sort/). To do so, you would need to include fontawesome: <link href=”//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css” rel=”stylesheet”> and then simply use the fontawesome-icon instead of the default-bootstrap-icons in your th‘s: <th><b>#</b> <i class=”fa fa-fw fa-sort”></i></th>

Bootstrap 3 btn-group lose active class when click anywhere on the page

So, (as mentioned in the comments) that gray fill you see isn’t actually an active class being applied – it’s the focus selection behaviour of that particular Bootstrap button element. (Like the dotted outline of a hyperlink.) Try pressing Tab after clicking a button, and you should see the focus selection change. One way to …

Read more

Create a circular button in BS3

you can do something like adding a class to add border radius HTML: <a href=”#” class=”btn btn-default btn-circle”><i class=”fa fa-user”></i></a> CSS: .btn-circle { width: 30px; height: 30px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.42; border-radius: 15px; } in case you wanted to change dimension you need to change the font size or padding …

Read more

Keep Bootstrap Dropdown Open When Clicked Off

From the events section of the Bootstrap dropdown documentation: hide.bs.dropdown: This event is fired immediately when the hide instance method has been called. For starters, to prevent the dropdown from closing, we can just listen to this event and stop it from proceeding by returning false: $(‘#myDropdown’).on(‘hide.bs.dropdown’, function () { return false; }); For a …

Read more

Bootstrap 3 extra large (xl) columns

You can download a simple small CSS file from GitHub using this link: https://github.com/marcvannieuwenhuijzen/BootstrapXL If you add this CSS file to the HTML after the Bootstrap CSS file you will be able to use col-xl-{size}, col-xl-push, hidden-xl, etc. The media-query breakpoint is 1600px; Update The alpha release for Bootstrap 4 is available now with native …

Read more