Is there a way to center a box with a picture and two headlines floating to the right of it?
<div class="py-1 py-sm-5">
<div class="box">
<img src="img/logo_gross.png" class="mx-auto d-block col-lg-3 col-sm-6 col-8 img-fluid float-sm-left" alt="Dennis Pfeiffer Asslar - Dienstleistung Professionell">
<h1 class="text-center text-sm-left"><span class="text-red">dienstleistung</span><span class="text-blue">professionell</span></h1>
<h1 class="text-center text-sm-left"><span class="text-red">dennis</span> <span class="text-blue">pfeiffer</span></h1>
</div>
</div>
Currently, everything is aligned to the left of the screen, but I want it centered. Using 2 x "col-6" is not a suitable solution as it won't be truly centered.