I create a login button on my website that opens a modal. B / c I need to load its contents via AJAX, I initialize it using bootbox. Then I put the contents in my modal. But the line, which should be on the top of the footer, is in the middle.

If I try to copy the final html using the Firefox development tools, it works . If I detach all the stylesheets but the bootstwatch theme, the same problem. Here is js:
$('#login').click(function(event) { event.preventDefault(); bootbox.dialog({ message: '<img class="col-md-4 col-md-offset-4" src="/images/load/spinner-256.gif" />', title: "Please login", buttons: { 'cancel':{ label: 'cancel', className: 'btn-link' } } }); $('.bootbox-body').addClass('loading-bb'); $.ajax({ url: '/api/ajax/login', success: function(data) { $('.bootbox-body').html(data) $('.bootbox-body').removeClass('loading-bb'); } }) })
You can also see a working example: http://polar-wave-4072.herokuapp.com/
javascript jquery css twitter-bootstrap bootbox
Vinz243
source share