change centering to be middle for non-root and 1/4 for root