Jump to content

How to apply opactity to parent class


newcoder1010

Recommended Posts

Hello,

HTML:

<section id="block-situations">
<h2 class="block-title">Need to Sell Your House</h2>
<div class="field field--name-body">
<div class="padd"> 
<ul class="eclipse-list"><li>Single family house</li>
  <li>Mult-units</li>
  <li>Town homes</li>
</ul>
</div>
</div>
</section>

CSS:

#block-situations {
    background-image: url(home-for-cash.png);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .5;
}

 

I like to apply opacity to #block-situations only. It works. But the problem is that eclipse.list class contents grayed out. That means once I have the opacity, .eclipse-list contents are not clear. How to apply opacity to parent class without affecting the eclipse-list class contents?

Thanks!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...