fit the title of the page when resizing the page