[FEATURE] Demo For Ribbon Over Image
Please add a demo for 'How to place a ribbon over an image'. I can't figure it out, as described here: https://stackoverflow.com/questions/61777903/place-ribbon-over-image-not-responsive
Try this code snippet 😄
<div class="position-relative">
<img src="../../dist/img/photo1.png" alt="Photo 1" class="img-fluid">
<div class="ribbon-wrapper ribbon-lg">
<div class="ribbon bg-success text-lg">
Ribbon
</div>
</div>
</div>
Thank you very much! But the ribbon is orientated at the right side of the card. If the image is big enough, this is no problem, but with smaller images.


The code with the card looks like this at the moment:
<div class="card">
<div class="card-body">
<div class="text-center">
<a href="../user/albumdetails.html">
<div class="position-relative">
<img class="img-fluid img-thumbnail lozad" data-src="../assets/samples/c1.jpg">
<div class="ribbon-wrapper ribbon-xl">
<div class="ribbon bg-primary">
Sammlung 'Christian'
</div>
</div>
</div>
</a>
<p class="card-text mt-1">
Ahmal Jamad<br>
<strong>Progressive Sessions and the Fath for Atlantis</strong><br>
<small>6 Tracks - Jazz/Blues - mp3</small>
</p>
</div>
</div>
</div>
Oh try to add .d-inline-block beside position-relative, you can add position-relative to your a-tag instead of a div inside the a.
Like this:
<div class="card">
<div class="card-body">
<div class="text-center">
<a href="../user/albumdetails.html" class="position-relative d-inline-block">
<img class="img-fluid img-thumbnail lozad" data-src="../assets/samples/c1.jpg">
<div class="ribbon-wrapper ribbon-xl">
<div class="ribbon bg-primary">
Sammlung 'Christian'
</div>
</div>
</a>
<p class="card-text mt-1">
Ahmal Jamad<br>
<strong>Progressive Sessions and the Fath for Atlantis</strong><br>
<small>6 Tracks - Jazz/Blues - mp3</small>
</p>
</div>
</div>
</div>
Sorry for the late response, this worked for me, tanks!