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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:59:08+00:00 2026-05-13T01:59:08+00:00

I have the following DIV structure: <div id=parent> <div id=child></div> <div id=child2></div> </div> I

  • 0

I have the following DIV structure:

<div id="parent">
<div id="child"></div>
<div id="child2"></div>
</div>

I want to apply one half opaque background into the parent DIV, and one fully visible background to the child DIVs. However, it seems that the child will take over the parent, so, I have now no idea how to come over with this.

EDIT: Some more clarification.

I have a jQuery draggable “window” made of DIVs. Inside it, I have a progress bar with

relative position like:
position: relative;
left: 16px;
top: 16px;

This way the progress bar will be at 16-16 of the window (not the screen) and the progress bar moves correctly along with the window.

However, the progress bar has texture on the top. Take a look at this example:

<div style="background: url('texture.png'), url('empty.png'); width: 256px;">
<div style="background: url('progress.png'); width: 33%;"></div>
</div>

There’s an opaque texture applied to the whole progress bar element, for example, if the percentage of this progress bar is 33%, then it looks like xxx—— where x denotes the flowing green bar and – is empty. The texture must be applied to both x and -, but currently the image of x takes place over the texture.

I can’t really use Z-index and/or position absolute to position the child elem on the top, because of the relative positioned approach.

  • 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-13T01:59:09+00:00Added an answer on May 13, 2026 at 1:59 am

    I don’t know whether I understoood your question correctly, but aren’t you looking for CSS3 RGBA colours?

    p { color: rgba(0,0,255,0.5) }        /* semi-transparent solid blue */
    p { color: rgba(100%, 50%, 0%, 0.1) } /* very transparent solid orange */
    

    Reference: 4.2.2 RGBA color values

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

Sidebar

Related Questions

I have the following structure: <div class=parent> <div id=child1>Content here</div> <div class=child2>Content here</div> </div>
I have the following structure, one outer div (#results) and about 20 divs with
I have the following structure in a form: <div class='full'> <div class='half'> <label>Book</label> <select
I have the following div structure <div id=main_div> <div id=lastChildDiv></div> </div> now I want
I have the following structure: var $html = $(<div id='a'><div id='b'><div id='c'></div></div></div>); I want
I have some HTML with the following approximate structure and positioning: <div class=grand-parent style=position:
I have a following div structure <div id=wrapper> <div id=header> <div id=storeFinder> /* html
In my rails view(index.html.erb), i have following structure <div> <%= render :partial => create
I have the following structure: <div id=content-header> <h1 id=title>Athletics Calendar</h1> </div> and the following
I have the following structure: <div id=container> <div id=someid1 style=float:right></div> <div id=someid2 style=float:right></div> <div

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.