This is an example page with the content centered both horizontal and vertically using CSS and Javascript.

Happy Valentine's Day

Hearts

For more details see the article Centering content horizontally and vertically on a page. Thanks to Pixabella for the hearts.