Let's say i have
<container>
<A>
<B>
</container>
How do i make the size of the container to depend on the size of element A, but independent from the size of B? So that the size of B depends on the size of the container which depends on the size of A? So that A would define the size of everything