jqueryblockuijquery-blockui

Is there anyway to have jquery BlockUI vertically center on the screen


I am using jquery blockui but the div that is being covered is very long, so the loading message shows up off the screen.

Is there anyway to have jquery blockui loading message vertically center on the visible screen so people can see the message without scrolling down ?


Solution

  • blockUI by default displays in the center of the screen. And I believe it displays in the center even when you keep scrolling the page.

    However you can set the below properties while calling blockUI.

    centerX: true
    centerY: true