Describing it in words is proving to be difficult, so let me just illustrate it for you.
In the following images, the horizontal lines represent the "text", the small box symbolizes the image, and the larger box encompasses the entire webpage. My goal is to make the text behave as shown in the drawings, but I'm struggling to achieve that.
https://i.sstatic.net/jtryI.png
https://i.sstatic.net/Zo5h5.png
I've managed to wrap the text around the image using the float
property, and I can vertically center the text using flexbox
, grid
, or even table
. However, I'm facing a challenge when trying to do both simultaneously. Whenever I attempt to vertically center the text using any of these techniques, it seems to run into a clearing bug and treats height:100%
as if the image doesn't exist.