.col-md-6 { flex: 0 0 auto; width: 50%; margin: auto; } .bg-light { background-color: #f8f9fa!important; align-content: center; display: grid; }