Transparent DIV in IE8

I have a DIV with an iframe that is displaying as partially transparent in Internet Explorer 8 no matter what parameters I adjust. It displays fine in Chrome and Firefox.

<!-- Modal -->
<div class="modal" id="MeetingModal" tabindex="-1" role="dialog" aria-labelledby="modalMeetingLabel" aria-hidden="true" style="margin-left:-30%; position:absolute; background-color:white; left: 50%; top: 10%; -moz-opacity: 1;opacity:1;filter: alpha(opacity=70);">
 <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" >
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>              
        <h4 class="modal-title" id="AddMeetingLabel">Add Meeting</h4>
      </div>
      <div class="modal-body" style="left: 0px; top: 0px;height:600px; background:white">
          <iframe id="iFrameMeeting" frameborder="0" allowtransparency="false" marginwidth="1" marginheight="1" height="400px" width="100%" scrolling="no"></iframe>  
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>

Open in new window


It is being opened using the function

function LoadMeetingModal(){
    $('#iFrameMeeting').attr("src", "/prd/hcctesting/Pages/pharmslt_new.aspx");
	//$('#iFrameNewMitigation')[0].contentWindow.location.reload(true);
    $('#MeetingModal').modal('show');
}

Open in new window


What CSS reference or code do I need to adjust to get his to be 100% opaque (0% transparency).
aehrenwoTechnology AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russ SuterCommented:
This should do it for all browsers

  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";

  /* IE 5-7 */
  filter: alpha(opacity=100);

  /* Netscape */
  -moz-opacity: 1;

  /* Safari 1.x */
  -khtml-opacity: 1;

  /* Good browsers */
  opacity: 1;

Open in new window


Here's the trick. You need to make sure your CSS loads last. Also, if there's a css setting somewhere up in the cascade that has the !important attribute set it doesn't matter where you put your CSS unless you also use the !important attribute.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Julian HansenCommented:
Just as a matter of interest - IE 8 is long dead why are you worrying about it?
0
aehrenwoTechnology AnalystAuthor Commented:
Work for a company where IE8 is still a standard platform because of legacy tools.  Google chrome has been introduced as an alternative but because of our size we have not yet been able to make it the standard default on all machines so we need to make sure we code for issues associated with IE8 at least for another year... it is very frustrating.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.