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

CSS CSS Basics (2014) Enhancing the Design With CSS Multiple Backgrounds and Web Fonts Review

What will happen if we define a fully opaque background image or color anywhere above the bottom background layer?

What will happen if we define a fully opaque background image or color anywhere above the bottom background layer?

2 Answers

Lotte Bloem
Lotte Bloem
18,630 Points

It will cover up all background layers behind it.

Thanks you very much

Zachary Fine
Zachary Fine
10,110 Points

Not exactly sure what you are asking here. Think about it like a cube, X is left to right, Y is top to bottom and Z is near to far. So if the background has a Z-index greater than all other layers then it will be in front of everything.