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


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!