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

HELP!!!!!!

First, we need to establish a positioning context for our boxes. Create a new CSS rule that sets the position of the div with class wrapper to relative. I don't understand what they mean.

4 Answers

Stone Preston
Stone Preston
42,016 Points

you need to select the class of wrapper. you can do that using

.wrapper { }

you then need to set the position attribute . you can set the position attribute like so:

.wrapper { position: absolute; }

however in your case you need to set the position to relative, not absolute.

Thank you!

Valery Kukatov
Valery Kukatov
6,996 Points

You have to create a rule in your stylesheet.css that is going to position your 'div class="wrapper"' in a relative layout. So you will have to do something like this.

.wrapper{
position: relative;
}

Now I don't know what the actual command to set up the position is, but that's the basic idea. You are way further than me on the CSS. Good job.

Thank you!!!

h

.wrapper{ position: relative; }