I am in the process of updating my HTML files to Bootstrap version 5.2.3.
In the current version (4.6.2), I have been utilizing the float classes left and right to position images with text wrapped around them on their respective sides. Additionally, I have set the figures to occupy 40% of horizontal screen space until a certain breakpoint to avoid the text wrapping around the images from becoming too narrow just before the breakpoint. This setup also includes some margins between the figures and the wrapping text, achieved through the following CSS:
...CSS code here...
As I transition to using Bootstrap 5.2.3, I am trying to replicate this behavior by incorporating the float-sm-start and float-sm-end utility classes.
The initial attempt achieved partial success in preventing the narrow text wrapping issue but still had an offset positioning problem for the float-end figure. Here's the updated CSS for that:
...Updated CSS code here...
Is there a more elegant way to achieve this layout using specific utility classes within Bootstrap? Or will additional custom CSS be necessary? What about other float utilities like float-md|lg|xl|xxl-start/end?