What is the difference between Bootstrap .container and .container-fluid classes?

Quick version: .container has one fixed width for each screen size in bootstrap (xs,sm,md,lg); .container-fluid expands to fill the available width. The difference between container and container-fluid comes from these lines of CSS: @media (min-width: 568px) { .container { width: 550px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: … Read more

Multiple modals overlay

Solution inspired by the answers of @YermoLamers & @Ketwaroo. Backdrop z-index fix This solution uses a setTimeout because the .modal-backdrop isn’t created when the event show.bs.modal is triggered. $(document).on(‘show.bs.modal’, ‘.modal’, function() { const zIndex = 1040 + 10 * $(‘.modal:visible’).length; $(this).css(‘z-index’, zIndex); setTimeout(() => $(‘.modal-backdrop’).not(‘.modal-stack’).css(‘z-index’, zIndex – 1).addClass(‘modal-stack’)); }); This works for every .modal created … Read more

IE8 issue with Twitter Bootstrap 3

You got your CSS from CDN (bootstrapcdn.com) respond.js only works for local files. So try your website on IE8 with a local copy of bootstrap.css. Or read: CDN/X-Domain Setup Note See also: https://github.com/scottjehl/Respond/pull/206 Update: Please read: http://getbootstrap.com/getting-started/#support In addition, Internet Explorer 8 requires the use of respond.js to enable media query support. See also: https://github.com/scottjehl/Respond … Read more