main.add(avatar); // Avatar is now independent, not nested main.add(profileCard);

to create a layout where one colored box is positioned inside another. This teaches how child components inherit relative positioning from their parent containers. Solution Code Template

Exercise 2.3.9 forces you to practice this relative positioning.

: Children are aligned based on the styles (like justifyContent and alignItems ) set in their parent component [ 0.5.2 ]. 🛠️ How to Code Nested Views