Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

modal window css

Posted on 2010-09-20
3
Medium Priority
?
376 Views
Last Modified: 2012-05-10
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
Comment
Question by:phillystyle123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 33719462
Can you post a live link or example?  
0
 

Author Comment

by:phillystyle123
ID: 33719689
yes:

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

click on the images further down the page
0
 

Accepted Solution

by:
phillystyle123 earned 0 total points
ID: 33730096
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question