Scale the width of box based on width