Displaying a border image over another image

So this is what i'm sitting at
.inner-image{
    position: absolute;
    right: 0px;
    z-index: 0;
}
.image-border{
    z-index: 1;
}

<div class="product" id="keyboard">
            <img src="../assets/product-border.png" alt="border" class = "image-border" >
            <img src="../assets/keyboard.png" alt="keyboard" class = "inner-image">
            <div class="title">Headset</div>
        </div>

not sure how to achieve this kind of an effect
note: the border is a png image
Screenshot_2024-04-28_140730.png
Was this page helpful?