DEV Community


Discussion on: Responsive text based on image size

simevidas profile image
Šime Vidas • Edited

Yes, that’s the case that I meant. Image + heading. The heading has width: 0, and the image has a specific width. We want the container to be as wide as the image, so width: fit-content.