bootstrap 5.0 center the form-group code example Example: center form group bootstrap .class { margin: 0 auto; float: none; //optional }