skip to Main Content

enter image description here
Please help me out with this problem

I have trying with background-img prop in css but it’s not working and there is no error in my console.
i have attach my code and you can see the path of image can anyone help me out with this problem

2

Answers


  1. You can simply write something like this:

    background-image: URL('/assets/profile.jpg');
    
    Login or Signup to reply.
  2. background-image: url(‘path/to/your-image.jpg’);

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search