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!

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


Code Challenge - Positioning Properties

Challenge Task 2 of 6: Create a new rule by selecting the box with the class 'middle'. Set its position to relative, then offset it 100px from the left. I feel like I have completed it correctly but it won't pass me. Here's my answer in CSS: .middle { position: relative; margin-left: 100px; }

1 Answer

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

Thank you very much Arthur! I was making it out to be more difficult than it was : )