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 Basics Positioning Page Content How Absolute Positioning Works

Adri Johari
Adri Johari
17,075 Points

For this video, why the "ice cream" go to the left but "TEA" go to the right?

For this video, why the "ice cream" go to the left but "TEA" go to the right? What happens if I have 3 elements in absolute position?

1 Answer

If you would have 3 absolute elements with no positioning values they would just go on top of each other. In this case the TEA got a positioning value (from) RIGHT:6EM and the ICECREAM got placed (from) LEFT:50px