Jump to content

Recommended Posts

I have two divs, both with id, outerbox and overlay

 

overlay is inside the outerbox, and the outerbox has a opacity of 0.7 overlay has an opacity of 1.0 but overlay still shows as opacity of 0.7

 

here is the css:

 

div#outerbox {position: absolute; top: 0; left: 0; z-index: 90;opacity:0.7; width: 100%;height:200%; background-color: #000;}

div#overlay { position: relative; background-color: #ffffff; width: 500px; height: 250px; margin: 0 auto;z-index:100;opacity:0.7;border:3px solid #000;padding:10px;}

anyone know why the overlay is picking up the outerbox style?

when debugging with firebug, its saying that the overlay has an opacity of 1, but the display shows different.

Link to comment
https://forums.phpfreaks.com/topic/226281-opacity/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.