- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHello.
Have created a modal window to display gallery items. But having problems with the page scrolling and not displaying the full shaded out grey.
Either I would like to disable the scroll bar or have ot so the modal window stays static so the content scrolls behind.
You can see what has been done here: http://heardgallery.v1.jus
This is the CSS.
.black_overlay {
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.2;
opacity:.20;
filter: alpha(opacity=20);
overflow:hidden;
}
#image_modal{
display: none;
position: absolute;
top: 0;
left: 0;
margin: 0;
width: 100%;
height:100%;
z-index: 1002;
}
And divs.
<div id="image_modal"></div>
<div id="fade" class="black_overlay"></di
hope you can help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: lorenzodalcolPosted on 2008-10-02 at 15:44:47ID: 22629457
this can be done in all browser except Internet Explorer using "position: fixed;"
uk/fixedPo sition.htm l
it fix the div also if the user scrolls the page.
To get "position fixed" also in Internet Explorer you can use a trick that mixes Javascript and CSS, like explained here:
http://www.howtocreate.co.
Select allOpen in new window