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

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; }