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...
11 Respuestas
+ 3
The image should be in the same directory as your html file only then it will work
+ 2
Describe your folder structure, it helps others to understand your situation better and assist you effectively.
+ 2
Edited my answer. Then put the address... How is the computer supposed to know where the image is
+ 2
Are you using your mobile phone to run your code? 🙄
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...
0
I had also tried what u r saying... But it didn't work...
0
Nope..😐 sublime text editor
0
Okayy.... I'll look upon it.. thnx for ur answers..😁
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
0
You have to keep the image in the same directory. Then you can add background image in your webpage..
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