Switch boxes to CSS calc ulation