html, body { height: 100%; width: 100%; } html { display: table; } body { display: table-cell; font-family: Roboto, sans-serif; vertical-align: middle; } img.logo { display: block; margin: 1em auto 2em; min-width: 200px; width: 30%; max-width: 512px; } h1 { text-align: center; font-family: 'Roboto Slab', serif; font-weight: normal; } nav { margin: auto; } nav>ul { list-style-type: none; text-align: center; } nav>ul>li { font-size: 130%; display: inline-block; margin: 1em 3em; } nav a { text-decoration: none; color: #2e5882; } nav a:hover { border-bottom: 1px solid #2e5882; }