Skip to content Skip to sidebar Skip to footer

Jquery Dialog Box Not In Center In Chrome

in FF and Internet Explorer the dialog box shws up in the center, but in chrome it ends up on the left side. How can i fix this? code (self is the object this is in): $('form'

Solution 1:

Perhaps assign a class to the dialog's div e.g:

 $('<div class="ui-dialogue">',
              {html: 'Are you sure you want to submit this table?<br/> All undo information will be lost.'})
         .dialog({
            modal: true,
            title: 'Are You Sure?',
            buttons: {

And then create include a css rule that will center the dialogue on the page like so:

.ui-dialogue{margin:0 auto;}

Or somesuch css that will center the dialogue... It's a guess, but might force it to work on most browsers.

Post a Comment for "Jquery Dialog Box Not In Center In Chrome"