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 trialROHITH KAYERKER
Front End Web Development Techdegree Student 1,265 PointsUse a background blend mode to blend the main element's background image with its background color. Use the value that m
Use a background blend mode to blend the main element's background image with its background color. Use the value that m
main {
max-width: 600px;
height: 400px;
background: url(mtn-landscape.jpg) center / cover mediumaquamarine;
/* Add blend mode here */
}
<!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
B Asher Bushman
4,962 PointsI used this code and it worked for me. main { max-width: 600px; height: 400px; background: url(mtn-landscape.jpg) center / cover mediumaquamarine; background-blend-mode: multiply;
}
Bricenia Estrada
4,649 PointsBricenia Estrada
4,649 Pointsmain { max-width: 600px; height: 400px; background: url(mtn-landscape.jpg) center / cover mediumaquamarine; background-blend-mode: multiply; /* Add blend mode here */
}