Encountering a problem with CSS on my Wordpress websites.
Using WP's editor to float images to the right or left of text, I noticed an issue when viewed on mobile:
https://i.sstatic.net/gVFRq.jpg
The text gets cut off.
How can I ensure that no text is displayed unless there is enough space for it to be properly shown? Some solution might fix this.
Thank you!
p.s. Below is the code snippet provided:
<img class="alignleft size-full wp-image-16" src="x" alt="x" width="250" height="283" />
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
This issue occurs across all my Wordpress sites making testing easy.