body { font-family: Roboto, Helvetica, Arial, sans-serif; max-width: 500px; margin: 0.5em auto; text-align: center; } .countries { text-align: left; border: 1px solid #ccc; border-radius: 5px; display: inline-grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); max-width: calc(9 * 50px); margin-bottom: 1em; } .cc-link { display: inline-block; line-height: 50px; text-align: center; color: inherit; text-decoration: navajowhite; font-size: 1.2em; border: 2px solid transparent; box-sizing: border-box; } .cc-link:hover { background: #e6f3ff; border-radius: 5px; } h2 { font-weight: normal; margin-top: 0.5em; } #suggestions { text-align: left; }