https://codepen.io/nisofwareengineer/pen/rNBvgLa
What I am trying to do is simply move all the content inside the black box into the center.
The code I am working with is:
<div class="col-lg-12 col-md-12 col-sm-12 mb-md-10 mb-sm-10">
<div class="p-20 bg-dark text-center text-white h-position-relative" style="height:300px;">
<h3 class="p-0 mb-10 b-heading__secondary-2"><span class="text-info font-italic">we</span><span class="text-primary b-font__primary">Fit</span> Cycle Accessories</h3>
<p class="p-0 mb-20 b-font__secondary fs-xxlarge font-weight-bold"><span class="text-primary"><em>for</em> £8</span> per bike, just ask in store*</p>
<p class="pb-0 mb-20 b-font__secondary fs-large fs-sm-medium font-weight-bold"><span class="font-italic">*If you have CycleCare or purchase CycleCare for your bike, this will be free.</span></p>
</div>
</div>
I have tried various things such as adding the below to the class of the inner div:
justify-content:center;
align-items:center;
as well as various bootstrap margin and padding effects such as p-50, m-50 etc.
However no matter what I do the content inside the dark area is not moving to the center
The only thing that ''works'' is
style="position:absolute; left:30%; top: 30%;"
But this is not feasible since it's a nightmare to work with in terms of responsiveness