This course will be retired on July 12, 2021. We recommend "Mobile-First CSS Layout" for up-to-date content.
Create an Image Caption with Absolute Positioning5:38 with Guil Hernandez
Learn to use CSS positioning to place a caption and icon over the "Best City Guide" featured image.
- When you position elements with offset values, a negative offset value moves the element in the opposite direction.
- Instead of moving the positioned element away from the top, right, bottom or left edges of its relative container, a negative value it moves it towards the top, right, bottom or left edges.
- It's best to practice using different positioning offsets and relative containers to see how it affects your layout.
You need to sign up for Treehouse in order to download course files.Sign up