Shrink-to-fit div and paragraph, based on image?

前端 未结 6 1335
情歌与酒
情歌与酒 2020-12-11 16:27

The code below is a simplified version of my website. On my site, the image width varies from page to page and the text is around 100 words. That means the paragraph stretch

6条回答
  •  执念已碎
    2020-12-11 17:22

    No, it's not possible by only using CSS. You will need to set a width for the parent div and rescale your images.

提交回复
热议问题