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 Create an Image Caption with Absolute Positioning

Jenelle Miller
Jenelle Miller
5,989 Points

Can relative and absolute positioning work if there are multiple elements to position to separate parent elements?

Can relative and absolute positioning work if there are multiple elements to position to separate parent elements?

1 Answer

Hi Jenelle,

It is hard to know what you mean specifically without seeing your code. If you are asking if you have two different elements in two different parent elements can they both use relative and absolute positioning, the answer is yes. Likewise you can position multiple elements as absolute within one relative parent. Hope this helps!

Jenelle Miller
Jenelle Miller
5,989 Points

This answers my question thanks!