My goal is to create a div using Bootstrap 4 that contains an <h1>
aligned in the center, with a <p>
tag aligned to the right. You can see exactly what I'm aiming for here:
https://i.sstatic.net/dhgqX.jpg
I am looking for a solution using Bootstrap 4 classes or flexbox, without relying on floats. Here's the code I've developed so far:
<div class="row">
<div class="col-sm-12 p-20">
<h1 class="heading-font px36-font d-inline-block">.Hay<span class="skyblue">ford</span></h1>
<p class="d-inline-block special-font b-900"><i class="fa fa-phone"></i> +92-336-54-14-994</p>
</div>
</div>