auto center the content based on viewport and content height