Currently, I am dealing with the following code:
<div style="min-width: 1000px;">
<p>
Some text
</p>
<div class='div_img_left'>
<img src="images/sth.png" alt="missing image" style="max-width: 100%;">
<footer>My caption</footer>
</div>
</div>
.div_img_left {
max-width: 50%;
float: left;
margin-right: 30px;
margin-bottom: 2em;
text-align: center;
}
While this design works well on my computer screen, it presents issues when viewed on my mobile device. The main problem arises from the fact that my phone's screen width is not 1000px, causing elements to shrink. Specifically, the text "Some text" remains readable, but "My caption" shrinks excessively. How can I address this issue?
I have attempted various geometrical constraints such as using percentages or min-height, but none have provided a satisfactory solution.