Calculate element width/height for correct centering