I am facing an issue with a modal window that is fetched from the server and added to a container with absolute positioning. When I try to open the window, it does not display correctly as it gets positioned inside the container, causing most of it to be hidden.
Is there a specific CSS code that needs to be applied to the container of the modal window (MyModalWindow)? The current code I have is as below:
<div style="position:relative;">
<div style="position: absolute;">
<div id="MyModalWindow"> </div>
</div>
</div>
The modal window is implemented using jQuery Tools, which applies the following styles to MyModalWindow when it is displayed:
element.style {
display:block;
left:183.5px
position:absolute;
top:468.4px;
z-index:9999;
}
Essentially, I need the div element to not be nested within the parent, as jQuery automatically centers it on the webpage regardless of its actual position in the DOM structure.