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

need help

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.

.middle {

position: relative;

margin-left: 100px;

}

it says

Bummer! Check the left offset in your CSS.

no clue!

2 Answers

Hi Muhammad,

Once an element has a positioning context it can be positioned with the left, top, right, and bottom properties.

In this case, it wants left: 100px;

Thanks pal. I have a bad memory.