Hope you're doing well. I have a specific requirement where I need the image to be displayed to the right of the title when switching to cellular xs mode. For instance, the title should take up col-xs-9 and the image should take up col-xs-3. In the past, I achieved this in Bootstrap 3 with the following solution:
<div class="col-xs-4 col-sm-3 pull-right col-md-12">
<img src="...." alt="" class="img-responsive" style="max-width:100px;" />
<div>
<header class="col-xs-8 col-sm-9 col-md-12">
<a href="#">
<h2>Title</h2>
</a>
</header>
The solution provided was using the pull-right class.
However, in Bootstrap 4, I've tried using float-right and float-sm-right instead of pull-right, but it doesn't seem to work. Is there a way to fix this issue? Are there any examples available?
Below are examples of how I want the image to be displayed in relation to the text:
Image in standard mode or on a big screen:
https://i.sstatic.net/u2iQs.png
Image in xs mode or on a cellular device: