Autoscale elements to fill a container.