Nested StackPanels combined with setting style for the individual items provide a very flexible way to manage page layout.

Below, a horizontal stackpanel with a light grey background contains three vertical stackpanels, each containing a varying number of divs which have been styled to have slightly different sizes and colors.

Some divs have p elements containing text, with different padding and margins defined.

padding 10px
margins 5px
no padding or margins