I have the following HTML code
<img src="xxxxx.png" style="float:left"/>
<p>Some texts. Some texts. Some texts. Some texts. Some texts. Some texts. Some texts. Some texts. Some texts. Some texts. </p>
If the screen is wide enough, texts are displayed to the right of the image, which is good.
If the screen is narrow, texts are displayed below the image, which is good.
However, when the screen is in the transition stage (slightly wider than the image width), the texts are narrowed, displayed to the right of the image. How can I make sure that the texts can occupy the minimum width, say, 30em, otherwise let it be under the image?
source
share