I have an MVC3 C# .Net web app. I have a popup dialog box defined in a .js file. I am trying to get the popup to display in the center of the screen. What is the property to do that. I have tries position:'absolute' but no go. Here's a snipet of my jscript code
LdapDialog = {
/*
* Base URL for the app. Must be set prior to calling show (ideally in _Layout.cshtml).
*/
baseUrl: "",
title: "Lookup: Search by Last Name",
width: 375,
height: 600,
loading: $('<img src="' + $.getUrl('Content/Images/loading.gif') + '" />'),
dialogContainer: $('<div></div>'),
position: $('absolute'),
}
Any ideas?