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 trialMuhammad Ali Khan
8,227 Pointsneed 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
Jason Anello
Courses Plus Student 94,610 PointsHi 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;
Muhammad Ali Khan
8,227 PointsThanks pal. I have a bad memory.