• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

modal window css

I'm using these styles for my modal window.  they work great as long as i don't have to scroll down the browser. when i scroll down and click to open up a modal window, the modal window still loads in that absolute position. any ideas how to get the actual #dialog style to load relative to where i am in my browser window?

#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
  
#boxes .window {
  position:absolute;
   left:0;
  top:0;
  display:none;
  z-index:9999;
  padding:20px;
  font:14px Verdana, Arial, Helvetica, sans-serif;
}
#boxes .window label{
font:12px Verdana, Arial, Helvetica, sans-serif;
}

#boxes #dialog {
  padding:10px;
  background-color:#ffffff;
  border:4px solid #CCCCCC;
}

Open in new window

0
phillystyle123
Asked:
phillystyle123
  • 2
1 Solution
 
LZ1Commented:
Can you post a live link or example?  
0
 
phillystyle123Author Commented:
yes:

http://dev.roydent.com/endodontic/gutta-percha-points.asp
User id= roydentdev
Password= roydent5100

click on the images further down the page
0
 
phillystyle123Author Commented:
the answer appears to be "position:fixed;"
#boxes #dialog {
  padding:10px;
  border:4px solid #ccc;
  background:#fff;
  position:fixed;
}

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now