In this setup using Bootstrap 4, I have a header structure as follows:
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="navbar-brand"><img src="..."></div>
</div>
<div class="col-md-6 text-right">
<div class="header-btn-grp">
<div class="header-call-us">Get a Quote, Call Today!</div>
<a role="button" class="btn btn-danger btn-lg header-btn" href="tel:123">Ph : <strong>...</strong></a>
<div class="header-address">XXX</div>
</div>
</div>
</div>
On desktop view, the logo is on the left and the button is on the right as anticipated.
For smaller devices, I aim to center align both the logo and button.
I attempted to apply a .text-md-center
class to the columns, but this centered both elements in their columns across all screen widths (desktop and mobile).
What is the proper way to achieve this layout adjustment?