0
I have a ul, inside it has 3 li, inside one of these li has an image, I wonder if it has a method via css to make the width of ul equal the width of the image. (without changing the width of the image) I want to do this because the texts end up being larger than the width of the image and I can not change the size of the image
<ul>
<li><p>Texto texto texto</p></li>
<li><img src="qualquer-img.png" alt="qualquer img"></li>
<li><p>Texto texto texto texto texto texto texto texto texto texto texto</p></li>
</ul>
I believe this should be the default behavior of ul. You can include the CSS you use?
– Oralista de Sistemas
the problem is that the texts end up getting bigger than the image, and I haven’t added css to this part of the code.
– Daniel Castro
Maybe use width and height set?
– Paz
As I said in the question I can not change the size of the image and I will have several lists like this and I would like a solution for all
– Daniel Castro