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

Fedor Andreev
Fedor Andreev
6,438 Points

Why do you need to add an offset in this lesson?

http://teamtreehouse.com/library/css-foundations/the-box-model/positioning-properties-2

"And we'll also need to add an offset"

at 8:02 Mark.

Thanks

1 Answer

Because the element is positioned as fixed and as such needs to be positioned in relation to the view port. Setting the top offset to 0 fixes it to the top of the page.

Try experimenting a bit, set a bottom offset to 0 instead and see what happens. Or set it to some other number. The best way to understand how properties in CSS relate to each other is to experiment with them.