I'm attempting to design a header using bootstrap 4 that resembles the image shown https://i.sstatic.net/MFVZU.png. However, I'm encountering several issues with this method. The main problem is that the logo is not properly centered in the middle of the header. I've tried various approaches to resolve this, such as using align=middle, adding margin-bottom (which ends up creating more space below than above), and experimenting with the grid system by using col-1 and col-9. Unfortunately, the last method results in too much space between the logo and the heading.
The image provided showcases the version where the image is contained within the h1 element in HTML. The code snippet to create the logo is as follows:
<h1 class="display-4 bg-primary text-light">
<img src="https://via.placeholder.com/64x64" width=64 height=64 />Some text
<small class="text-white-50">
The new way of doing text-research</small></h1>
Additional details
- The small text should not be centered.
- My goal is to achieve this using only Bootstrap utilities.