2.3.9 Nested Views Codehs «DIRECT »»

</div> </body> </html>

parentView.add(childView1); parentView.add(childView2);

Run your code in the CodeHS sandbox. If you see a clean profile card with three stats side by side, you have successfully completed 2.3.9. 2.3.9 nested views codehs

It works. But soon, you run into the problem . You want two buttons on the left, an image on the right, and a footer stuck to the bottom. Suddenly, your single layout becomes a tangled mess of gravity, margins, and weights.

That’s impossible in a single linear layout. But with nested views? &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; parentView

The key requirement: .

So, how do you solve exercise 2.3.9 and master the art of nested views in CodeHS? Here's a step-by-step guide: But soon, you run into the problem

Aligns child views along the cross axis (e.g., left or right). Example Implementation

So, why nested views specifically?

.profile-card { display: grid; grid-template-rows: auto auto auto; }