Check out this code snippet:
div#bg {
background-size: contain;
background-repeat: no-repeat;
}
<div id="bg" v-bind:style="{ background: 'url(' + require('../assets/kafa.jpg') + ')' }">
I am trying to have a single image cover the entire page, but no matter what I do, the image keeps repeating itself within the div element. It seems like I can only access the properties of the div and not the image itself. I have experimented with different image sizes, but the issue persists.
Here is a visual representation of the problem
Thank you for any assistance provided.
EDIT1: I have also attempted using min-height: 100% and min-width: 100%, however, the problem still persists.