#eltern-container { position: relative; float: none; margin: 0 auto; width: 100%; /* The following three instructions are crucial! */ display: flex; justify-content: center; align-items: center; }