Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Enhancing Design with CSS Background Images CSS Background Blend Modes

Yariel Peralta
Yariel Peralta
7,118 Points

what do i do here I know its to put a blend mode but I am confused. can anyone help?

style.css
main {
  max-width: 600px;
  height: 400px;
  background: url(mtn-landscape.jpg) center / cover mediumaquamarine;
  /* Add blend mode here */
 background-color: darker color; 
}
index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Background Blend Modes Challenge</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <main>
    </main>
  </body>
</html>

1 Answer

Caleb Kemp
Caleb Kemp
12,690 Points

It's a pretty straightforward challenge just like you can use "color" to adjust the color of the text, you can use the "background-blend-mode" to blend the background.

example 1. If I wanted to apply to blend using the "exclusion" property, I would write

background-blend-mode: exclusion;

example 2. if I wanted to use the "hard-light" property it would look like

background-blend-mode: hard-light;

So, in this challenge, the teacher wants you to do that with the "multiply" property. Hope that helps, and let me know if it gives you any more difficulty.