0

I have tried to insert image background enter image description here

How the code should be written? Thanks for answering

1 Answer 1

1

Insert your image line like below

background-image: url('/images/bg2.jpg');

Please be make sure that your given URL is correct path for the Image.

Sign up to request clarification or add additional context in comments.

2 Comments

still not working. yeah I have checked the path, this where I put the image C:\Program Files (x86)\xampp\htdocs\asus\images\bg2.jpg but still not working
I think it should be a problem on your path.. First host image in postimage.org & give that URL to it..if this working then you must check your URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.