0

i'm trying to display html text stored in server data base. but the style of figure tag not working and the image is displaying in original size

<body>
    <figure style="width:50%;">
        <img src="https://picsum.photos/id/237/800/300" >
    </figure>
</body>
Temani Afif
  • 245,468
  • 26
  • 309
  • 415

1 Answers1

0

Add style="width:100%" to the img tag

<body>
    <figure style="width:50%;">
        <img src="http://localhost:8080/images/201217_StimmenFIFAWahl_16x9.webp" style="width:100%;">
    </figure>
</body>
Mitch Arseneau
  • 228
  • 1
  • 5
  • i using ckeditor to save these text in a data base ... i can't change the style of image. the text is stored in a data base i have only permission to display it with htmlinner directive – Youcef Guitoun Dec 19 '20 at 02:19