main svg { position: relative; left: 50%; transform: translate(-50%); } footer { position: absolute; left: 0; right: 0; bottom: 0; background-color: #D8D8D8; text-align: center; height: 50px; font-size: 25px; padding-top: 5px; }