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 CSS Foundations The Box Model Positioning Properties

Help!!!

This is what it says Let's change the stack order of our boxes. In the .top rule, add a z-index of 30. I don't know what to do.

2 Answers

Parag Nair
Parag Nair
2,269 Points

do you have css that reads something like .top { something }

If yes then all you need to do is add that z-index property like .top { z-index:30; }

Valery Kukatov
Valery Kukatov
6,996 Points
  • What Parag Nair said....
  • The z index is needed for the 3D axis. You know like x, y, and z.
  • X - Horizontal. (Left and right)
  • Y - Vertical. (Up and down)
  • Z - is forward and backward (Not sure what's the correct term)

Thank you to both of you!