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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:44:53+00:00 2026-06-08T22:44:53+00:00

When an element is given an opacity , all static and relative children of

  • 0

When an element is given an opacity, all static and relative children of the element are rendered with partial transparency. However, elements with position: absolute (or position: fixed) do not inherit this, and are instead rendered at full opacity unless specifically told otherwise.

Now, I could replace assignments to style.opacity with a call to a function that performs the assignment, then loops through all children, getting their computed style and seeing if their position property warrants the addition of its own style.opacity… but that’s a bit of a nuke.

I also know that I could add opacity: inherit to the appropriate elements, but this only works if they are direct children of the faded element – what if they’re descendants?

I’d like to know if there is a way to force elements to inherit the correct transparency.

Side-note: IE performs the way I want when I use filter:alpha(...), interestingly enough.

  • 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-08T22:44:55+00:00Added an answer on June 8, 2026 at 10:44 pm

    So as it turned out, the answer was simply “make sure the absolute elements have a relative container that is affected by the transparency”. I forgot to.

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

Sidebar

Related Questions

I'm trying to write javascript to find page elements relative to a given element
I'd like to translate all the children of a given element, say by 100
A list of sorted and rotated element is given. Elements are either sorted in
I want to be able to select all disabled decandants of a given element,
How to count array elements after the first occurrence of a given element? For
How do I get a tuple/list element given a condition in python? This occurs
Why is there a reported difference in element heights given the following html? <span
how can i get immediate parent of a given element ? $(e.target).parent() ?
This portion of code checks if a number given (First element in a list)
I'm using jQuery UI to create a button to a given html element. I'm

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.