Image Slider - Keep uploaded image's actual size
Submitted by ppshameer on Sun, 11/11/2018 - 09:06
Forums:
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
Mon, 11/12/2018 - 04:54
Permalink
Hi Shameer,The easiest way is
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