Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoseph Torres
6,282 PointsMake hero image dark
How would I take a hero image and give it some darkness as it shows here in the link..
I tired using rgba values and opacity on a div tag using a class that I named however it does not affect the contrast of the image. I just want to make a hero image look the same. Any clues??? Thank you so much
2 Answers
Amber Fuller
4,598 PointsHave you tried using filter? I looked it up and on stackoverflow someone mentioned using something like filter: brightness(50%);
Joseph Torres
6,282 PointsTHANK YOU SOOOOOOO MUCH, IT WORKED!!