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

  • Home
  • SEARCH
  • 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 8876655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:15:53+00:00 2026-06-14T19:15:53+00:00

I have an issue with creating a transparent element which has a child element.

  • 0

I have an issue with creating a transparent element which has a child element.
Using this code the child element gets the opacity value from the parent element.

I need to reset/set the child’s element opacity to an arbitrary value.
Browser of reference is Maple Browser (for a Samsung TV Application).

 .video-caption {
        position: absolute;
        top:50px;
        width: 180px;
        height: 55px;
        background-color: #000;
        -khtml-opacity:.40; 
        -moz-opacity:.40; 
        -ms-filter:"alpha(opacity=40)";
        filter:alpha(opacity=40);
        filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.4); /*just for testing*/
        opacity:.40; 
    }
    .video-caption > p {
        color: #fff !important;
        font-size: 18px;
        -khtml-opacity:1; 
        -moz-opacity:1; 
        -ms-filter:"alpha(opacity=100)";
        filter:alpha(opacity=100);
        filter: progid:DXImageTransform.Microsoft.Alpha(opacity=1);
        opacity:1; 
    }

EDIT MARKUP

<div> <img id="videothb-1" src="https://xxxxx/splash.jpg"> <div class="video-caption"> <p>Description here</p> </div> </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. Editorial Team
    Editorial Team
    2026-06-14T19:15:54+00:00Added an answer on June 14, 2026 at 7:15 pm

    The problem you probably have (based on looking at your selectors) is that opacity affects all child elements of a parent:

    div
    {
        background: #000;
        opacity: .4;
        padding: 20px;
    }
    
    p
    {
        background: #f00;
        opacity: 1;
    }​
    

    http://jsfiddle.net/Kyle_/TK8Lq/

    But there is a solution! Use rgba background values and you can have transparency wherever you want 🙂

    div
    {
        background: rgba(0, 0, 0, 0.4);
        /*opacity: .4;*/
        padding: 20px;
    }
    
    p
    {
        background: rgba(255, 0, 0, 1);
        /*opacity: 1;*/
    }​
    

    http://jsfiddle.net/Kyle_/TK8Lq/1/


    For text, you can just use the same rgba code, but set to the color property of CSS:

    color: rgba(255, 255, 255, 1);
    

    But you must use rgba on everything for this to work, you have to remove the opacity for all parent elements.

    http://jsfiddle.net/Kyle_/TK8Lq/2/

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

Sidebar

Related Questions

I have a weird issue with creating an Bitmap in C++. I'm using the
I have run into an issue while creating a data service and using Autofac
I have this issue with Core Data. I am creating a core-data-based application, for
I'm creating a live streaming app, but I have an issue on which media
I am creating a drawing application like this , but I have one issue.
I have an issue with my KnockoutJS code that is creating an infinite loop.
I have the same issue as Creating an additional related model with Devise (which
I am new to AJAX and have this issue. I am creating a photogallery
I have an issue using the GPS emulator provided by microsoft. This is my
We are new to ROR, We have issue in creating Login/Logout process in ROR

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.