I have a modal pop-up that I am displaying in the center of the screen using JavaScript.
$('div.openIDPopup').css({ 'height': $(document).height() + 'px',
'width': $(window).width() + 'px',
'visibility': 'visible'
})
.fadeIn('slow');
$('div.openId').css({ 'visibility': 'visible',
'top': ($(window).height() / 4) + 'px',
'left': ($(window).width() / 3) + 'px'
})
.fadeIn('slow');
However, when resizing the screen, the modal pop-up remains in the same position due to being absolutely positioned. How can this feature be changed?