.btn8831-container { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: center; max-width: 60%; margin: 0 auto; opacity: 1.0; } .button-item { margin: 5px; opacity: 1; } .button-group a, .button-group iframe { width: 88px; height: 31px; } .button-group img { width: 88px; height: 31px; opacity: 1; } .button-group { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; /* Space between groups */ } .btn8831-container hr { width: 100%; border: 0; border-top: 1px solid #ccc; margin: 10px 0; }