Put max width/height on root element.