I have a jQuery dialog box that is meant to position in the middle of the screen. However, it seems slightly off-center vertically.
Here is the code:
I was facing the same issue of having the dialog not opening centered and scrolling my page to the top. The tag that I'm using to open the dialog is an anchor tag:
The pound symbol was causing the issue for me. All I did was modify the href in the anchor like so:
Now my page is happy and centering the dialogs.