Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4079334
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:47:19+00:00 2026-05-20T17:47:19+00:00

The following, in Firefox 3.6, simulates a modal overlay: <html> <body> <div id=modal style=position:

  • 0

The following, in Firefox 3.6, simulates a modal overlay:

<html>
<body>

    <div id="modal" style="position: fixed; 
        top: 0; left: 0;right: 0; bottom: 0;
        background: rgba(255,0,0,0.5);
        z-index: 10;">

        <div style="border-style:solid;border-width:5px;
                    position: fixed;top: 50%;left:50%">
           <h2>I am modal</h2>
           <form><input type=submit></form>
         </div>
    </div>


    <div id="notModal" style="height:500px;
                              border-style:solid;border-width:5px;">
        <div>
            <h2>a I am not modal</h2>
            <p>lorem ipsit dolar foo bar baz</p>
            <form><input type=submit></form>
        </div>
    </div>
</body>
</html>

In particular, text in the “modal” div can be selected, and the submit button in the “modal” div can be clicked, but nothing in the “notModal” div can be selected or clicked.

In Internet Explorer 8, that’s not the case; the “notModal” text can be selected and teh “notModal” submit can be cliecked.

Is there a way to make this work under the various versions of IE, without using javascript?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:47:19+00:00Added an answer on May 20, 2026 at 5:47 pm

    IE has a lot of issues with transparency (it doesn’t support rgba). There are also known issues with z-indexing.

    Try something like this.

    Notes:

    • Most IE z-index issues can be fixed by applying z-indexes to the parent elements of the elements you’re trying to specify a z-index for.
    • I moved the modal window out of the cover (previously modal) div so that IE doesn’t try to apply the filter to it.

    Example
    HTML

    <div id="cover"></div>
    <div id="modalbox">
       <h2>I am modal</h2>
       <form><input type=submit></form>
     </div>
    
    <div id="notModal">
        <div>
            <h2>a I am not modal</h2>
            <p>lorem ipsit dolar foo bar baz</p>
            <form><input type=submit></form>
        </div>
    </div>
    

    CSS

    body {
        z-index: 1;
    }
    #cover {
        position: fixed; 
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        filter:alpha(opacity=50); /* Only applies to IE */
        background: red; /* This will be overwritten by browsers that support rgba */
        background: rgba(255,0,0,0.5); /* IE ignores this since it's not supported */
        z-index: 10;
    }
    #modalbox {
        border:solid 5px #ccc;
        position: fixed;
        top: 50%;
        left:50%;
        z-index: 20;
    }
    #notModal {
        height:500px;
        border:solid 5px #ccc;
        z-index: 5;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following works in firefox: &lt div style=position:absolute;top:0px;margin-top:60px;bottom:0px;width:100%> &lt div id=mainTabContainer dojoType=dijit.layout.TabContainer style=width:100%;height:100%> {%
Open the following HTML in Firefox <!doctype html> <html> <body> <div style=width: 1000px; height:
I have the following html/css that is causing problems in Firefox 1.5 and 2,
When we run following script under Firefox ... var d = $(<div class='test'></div>); d.hide();
The following works in Firefox, but breaks in IE7 & 8: $(#my-first-div, #my-second-div).hide(); so
In firefox the following CSS is only applied to the last div, as its
When you execute following example using Firefox 3: <html> <head> <script language=javascript type=text/javascript> <!--
The following works in current Firefox (PDF loads), but not in current IE (page
The following code works in Firefox but in Internet Explorer it returns error Object
The following CSS works well under firefox but doesn't work under IE browser, Why?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.