I am currently working with bootstrap and I have a requirement to show an image followed by some text. However, despite having enough space after the image, the text keeps getting pushed to the next line. Below is my code:
<div class="splash">
<h1><img src="logo.png" style="width:120%;height:auto" class="gold"><small>text</small></h1>
</div>
As images are typically inline elements, I applied the following CSS class in my stylesheet:
.gold {
display: inline;
}
I can't seem to figure out why this solution is not working as expected. Can anyone shed some light on this issue?