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

Fedor Andreev
Fedor Andreev
6,438 Points

Next, create another rule by selecting the box with the class bottom. Set its position to relative, then offset it 80px

from the left and move it up -20px.

My code is perfect? It should work? Help please?

.wrapper { position: relative; }

.middle { position: relative; left: 100px; }

.top { position: absolute; top: 50px; }

.bottom { position: relative left: 80px; top: -20px; }

I have a feeling I'm doing something wrong with the last line when I have to move it up by -20 pixels.

3 Answers

You are missing the semicolon after relative in the .bottom selector.

Fedor Andreev
Fedor Andreev
6,438 Points

Thanks! Take breaks is so important or you lose sight of attention to details!

.bottom { position: relative; left: 80px; top: -20px; }