Accounted for padding, margin and borders