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 Layout CSS Layout Techniques Positioning Elements

Noah Brown
Noah Brown
4,111 Points

How do i give .logo a top offset of -45px and a left offset of 20px.

This is in Challenge Task 2 of 4 in CSS Layout and I don't remember him saying anything about offset in the video.

1 Answer

Steven Parker
Steven Parker
231,268 Points

Setting offsets is done with the top, right, bottom, and left properties.

This is described from about from about 1:33 in the Relative and Absolute Positioning video.