+ 11
How to add an image in the background using the html code??
Background image
43 Antworten
+ 5
You can't on sololearn ,that's why you need to upload an image to Dropbox and copy it's link and paste it ,
Also search for similar questions ,you will get thousands of them where you can read on how to
+ 18
Sahil Contractor For more information , refer to this lesson :
https://www.sololearn.com/learn/CSS/1104/
+ 4
https://www.youtube.com/channel/UCUfAAArDgJ_WXI7yFdBVTqg
This my channels on YouTube
Can you found your answer three
+ 3
body{
Background-image:url(imageurl);
}
+ 3
Where should I paste the link?
+ 3
Upload ur img to cloud storage e.dropbox google drive:
<body style="background-image:url("#img url")"
+ 3
Background-image:url(imageurl)
+ 3
Background-image:url(imageurl);
+ 2
Pls answer
+ 2
I'm trying to make a website in which I am trying to insert the image in the background but nothing happens!!
+ 2
This is the code
+ 2
Ok thnx I will try
+ 2
It doesn't work!!
+ 2
You should use correct path to image
bg.jpg implies that image is in same folder in which you are working but this isn't true
upload the image to cloud storage such as Dropbox and copy link and paste it or fetch a image url online
+ 2
Ok
+ 2
How to add the correct path??
+ 2
How should I add the image in the same folder??
+ 2
For Html ->
<img src="path of an image.jpg" alt="" width="" height="">
NOTE: YOUR IMAGE EXTENSIONS IS .jpg , .png, .jfif or other.
I have written jpg for example only.
For Css ->
I am dam sure that image is not set in your background by writing background-image in css.
Instead you have to write following:
background:url("path of image.jpg") center no-repeat;