body { text-align: center; background-color: #222; color: white; font-family: sans-serif; } .sites-grid { position: relative; left: 10%; max-width: 80%; max-height: 80%; } .sites-item { border: #888 2px solid; display: inline-block; margin: 20px; width: 80px; height: 80px; } .sites-item:hover { border: #ccc 2px solid; } .site-favicon { width: 64px; height: 64px; position: relative; top: 8px; }