Image Slider - Keep uploaded image's actual size

Hi All,

I am using H5P Image Slider with  Drupal 8. How can I make changes for <img> tag, Some thing like below:

From :

<img style="width: 100%; height: 100%;" src="{IMAGE PATH}" alt="k1" title="">  To:

<img style="width: auto; height: auto; margin-left:auto; margin-right:auto; " src="{IMAGE PATH}" alt="k1" title="">.

Also I want to fix height of <iframe> based on image's actual height.

Any healps are highly appreciatted.

Thanks - Shameer P.

Content types: 
BV52's picture

Hi Shameer,

The easiest way is to use a PHP hook, to add your own CSS-file to the content type. Please visit the Visual Changes page for more details.

Please take note that if you set the images to a "fixed" size smaller devices may have a hard time viewing your content.

-BV52