I'm currently utilizing Bootstrap to create a web page showcasing an article with multiple images. The images that float left are working as expected.
However, I am facing an issue when trying to make the image float to the right. I have attempted the following methods:
- Adding the float-right class to the image (but unfortunately, this doesn't seem to work)
- Placing the text around the image in a separate column (resulting in the text not wrapping around the image correctly)
- Using the order-1 and order-12 classes on the respective elements (this approach fails with no clear explanation)
https://i.sstatic.net/lNN3q.png
Below is the code snippet I am working with:
<div class="row">
<div class="col-lg-5 col-md-4 col-sm-12">
<img src="resources/pic.jpg" width="100%" />
<p>
caption for photo here
</p>
</div>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>