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 trial

General Discussion

Joseph Torres
Joseph Torres
6,282 Points

Make hero image dark

How would I take a hero image and give it some darkness as it shows here in the link..

http://preview.themeforest.net/item/right-flooring-flooring-paving-and-tiling-services-html-template/full_screen_preview/20061064

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

Have you tried using filter? I looked it up and on stackoverflow someone mentioned using something like filter: brightness(50%);

Joseph Torres
Joseph Torres
6,282 Points

THANK YOU SOOOOOOO MUCH, IT WORKED!!