[jQuery] jqModal: having trouble centering modal window
Hi,
I just downloaded the latest version of jqModal and its accompanying
jquery file, but I'm not able to center my modal window using the same
style sheet -- http://dev.iceburg.net/jquery/jqModal/jqModal.css . I
only changed these lines
margin-left: -267px;
width: 535px;
to reflect the width of my modal window. Here is how I'm displaying
it:
$(document).ready(
function () {
$('#editTitle').unbind('click');
$('#modalWindow').jqm({
modal: true,
trigger: '#editTitle',
autofire: true,
focus: true,
overlay: 30},
function(h) {
$("#modalButtonSave").click
(function() { $("#modalWindow").fadeOut("slow"); });
$("#modalButtonCancel").click
(function() { $("#modalWindow").fadeOut("slow"); });
$("#modalWindow").fadeIn
("slow");
});
$('#modalWindow').jqmShow();
}
);
Any ideas what else I'm doing wrong and why my window is not
centering?
Thanks, - Dave