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 115851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:05:06+00:00 2026-05-11T03:05:06+00:00

Hey i have this div that shows as a popup: <div class=popup> </div> Then

  • 0

Hey i have this div that shows as a popup:

<div class='popup'> </div> 

Then with jquery i add another class to it to give it with the css associated to that class, position, size, color and transparency:

.show {     position: absolute;     color: #F4F5F6;     width: 600px;     margin-left: -300px;     height:300px;     background: #000000;     left:50%;     top:200px;      filter:alpha(opacity=95);      -moz-opacity: 0.95;      opacity: 0.95; } 

My problem is this:

I’m adding text and image to the div.

ending up like:

<div class='popup show'>     <div class='image'>       <img scr='blabla.png'>     </div>     <div class='text'>       ble ble ble     </div> </div> 

My problem is the following, even though i have overriden the opacity here:

div.image {     position: relative;     float:left;     width:202;     height:402;     filter:alpha(opacity=100);          -moz-opacity: 1;          opacity: 1;  } 

The image still apears with transparency.

Is there anyway to override the opacity values without having to put the image div outside of the popup div?

  • 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. 2026-05-11T03:05:07+00:00Added an answer on May 11, 2026 at 3:05 am

    Since the ‘.show’ class has an opacity of 95%, so will all of its descendants. It’s unfortunate, but that’s how opacity works. The descendants cannot overcome their ancestor’s opacity as long as they still truly remain descendants.

    You’ll have to either set the ‘.show’ background with a semi-transparent png or result to some awkward html (see: Non-Transparent Elements Inside Transparent Elements)

    Not trying to be jerky, but this Google search (or something similar) might help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

assume that I have this list: <ul id=carousel> <li><a title=hey><img src=image.png/></a></li> </div> And now
I have HTML that looks like this: <div class=item-list> <h3>Monday Sep 21</h3> <h3>Tuesday Sep
Hey, I have a code segment here: <div class=label><%= f.label :course %> <span>(Does this
Hey guys, I feel stupid with this one. I have one <div> that is
Lets say you have an HTML string like this: <div id=loco class=hey >lorem ipsum
Hey all, I'm about to rip my hair out. I have this client that
Hey this is the weirdest problem i've ever encoutered, I have 2 projects that's
Hey guys I simply cannot get this to work. I have some content that
Hey, I have a list of using ul and li: <span class=important>Show/Hide</span> <div id=important
Hey guys quick question, I have an add remove script that will add a

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.