Parent - Child
Lets look at the Parent - Child relationships for components on the Canvas
Add Some Buttons from the Form Elements panel to the Canvas.
Add a Panel to the Canvas.
Now drag a button onto the Panel
The Component Config Panel will also show the layout
Switch to Code View
If you manually edit this code you must ensure Parents are higher in the code than children.