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

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

plzz help

Challenge task 4 of 6 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.

here is what i have. .box { position: relative; left: 80px; -20px; } not sure what i did wrong??

6 Answers

top is missing. You're setting the relative position and the left position, but not the top position. You've only got a -20px which is bad syntax.

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

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

i just did it and it said Bummer! Make sure '.bottom' is positioned relative. i'm not sure what to do

I'm assuming (because I haven't taken the course and don't know the html) that there is an element with the class bottom. I don't know what .box is in the original css, nor what box is in question, so let's forget box.

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

.

Make sure all of your syntax is correct.

Remember to input the correct selector as well as declarations.