@Fernando0654
Posted
Right now, as you have your css, replace this to your .img-container::before
. You can do this by inspecting elements first to see it works fine
content: " ";
position: absolute;
opacity: 1;
background-image: url(./images/icon-view.svg);
background-position: center;
background-size: 20%;
height: 100%;
width: 90%;
background-repeat: no-repeat;
background-color: blue;
border-radius: 10px;
Of course, on background-color add the right color, I just wrote blue because I don't remember the color.
Good luck, though
Update:
Don't forget to add space on content: " "
, otherwise it won't work
Marked as helpful