Hi Team,
I am able to get the responsive image on my custom component by using responsive . It working for img tag.
But its not working for background-image:url div class. any suggestions?
<div class="hero__image" style="background-image:url('${dynamicmedia.fileReference @ context='styleString'}')"></div>
Solved! Go to Solution.
Views
Replies
Total Likes
as you are referring Dynamic Media Image so please try 'uri' instead of 'styleString' in context.
<div class="hero__image" style="background-image:url('${dynamicmedia.fileReference @ context='uri'}')"></div>
as you are referring Dynamic Media Image so please try 'uri' instead of 'styleString' in context.
<div class="hero__image" style="background-image:url('${dynamicmedia.fileReference @ context='uri'}')"></div>
How to handle responsive image library for background-image:url
<div class="hero_image" style="background-image:url('${dynamic.fileReference @ context='uri'}')"></div>
Its working as expected for <img> tag.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies