Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ui dialog position fixed center

$('selector').dialog({
    autoOpen: false,
    open: function(event, ui) {
        $(event.target).dialog('widget')
            .css({ position: 'fixed' })
            .position({ my: 'center', at: 'center', of: window });
    },
    resizable: false
});
 
PREVIOUS NEXT
Tagged: #jquery #ui #dialog #position #fixed #center
ADD COMMENT
Topic
Name
9+7 =