1

I was doing a mini project myself and decided to place a background image for another image ahd here is my CSS code:

.child2 img {
   width: 200px;
   height: 200px;
   border-radius: 50%;
   background-image: url('./assets/images/imageborder.png'); 
}

When I tried to run my Angular webpage,this popped up:

Cant resolve ./assets/images/imageborder.png in /Users/[my name]/sites/Project A/src/app/home

How to solve this issue?

1 Answer 1

1

Use

url('/assets/images/imageborder.png')

or

url('~src/assets/images/imageborder.png')
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you kind person, i was able to solve it with your help

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.