0

I've tried a lot to insert a background image in my webpage using CSS property....but i couldn't... NEED HELP...!!!

<body style=" background-image: url('image.jpg');" > Is this correct..?!! I'm not able to insert background image for my page...

26th Apr 2020, 4:58 AM
✨ Muviee ✨
✨ Muviee ✨ - avatar
11 odpowiedzi
+ 3
The image should be in the same directory as your html file only then it will work
26th Apr 2020, 5:00 AM
Bhavya
Bhavya - avatar
+ 2
Describe your folder structure, it helps others to understand your situation better and assist you effectively.
26th Apr 2020, 5:04 AM
Ipang
+ 2
Edited my answer. Then put the address... How is the computer supposed to know where the image is
26th Apr 2020, 5:05 AM
Bhavya
Bhavya - avatar
+ 2
Are you using your mobile phone to run your code? 🙄
26th Apr 2020, 5:07 AM
Bhavya
Bhavya - avatar
0
I've put my imahe in separate folder n this folder is in the same as my HTML files are saved...!! I've used inline css not external...
26th Apr 2020, 5:02 AM
✨ Muviee ✨
✨ Muviee ✨ - avatar
0
I had also tried what u r saying... But it didn't work...
26th Apr 2020, 5:06 AM
✨ Muviee ✨
✨ Muviee ✨ - avatar
0
Nope..😐 sublime text editor
26th Apr 2020, 5:07 AM
✨ Muviee ✨
✨ Muviee ✨ - avatar
0
Okayy.... I'll look upon it.. thnx for ur answers..😁
26th Apr 2020, 5:08 AM
✨ Muviee ✨
✨ Muviee ✨ - avatar
0
i had the same issue yesterday but i will advice you to download dropbox...Via that you can upload the image and the get the link..Past it where its supppsed to be..You are good to go
27th Apr 2020, 1:23 PM
Jimai International
Jimai International - avatar
0
You have to keep the image in the same directory. Then you can add background image in your webpage..
28th Apr 2020, 12:45 AM
Md. Jehadi Rahman
Md. Jehadi Rahman - avatar
0
Put the image in same folder with your html file, or specify the path to the image e.g c://folder name/img1.jpg
28th Apr 2020, 4:13 AM
Sam
Sam - avatar