How to add an image in the background using the html code?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 11

How to add an image in the background using the html code??

Background image

8th Jun 2020, 12:41 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
42 Respuestas
+ 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
8th Jun 2020, 12:54 PM
Abhay
Abhay - avatar
+ 18
Sahil Contractor For more information , refer to this lesson : https://www.sololearn.com/learn/CSS/1104/
8th Jun 2020, 1:02 PM
💕₽ΔŘI💕
💕₽ΔŘI💕 - avatar
+ 4
https://www.youtube.com/channel/UCUfAAArDgJ_WXI7yFdBVTqg This my channels on YouTube Can you found your answer three
8th Jun 2020, 5:51 PM
Jaafar saeed
Jaafar saeed - avatar
+ 3
body{ Background-image:url(imageurl); }
8th Jun 2020, 12:45 PM
🔥VENAGE🔥
🔥VENAGE🔥 - avatar
+ 3
Where should I paste the link?
8th Jun 2020, 1:13 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 3
Upload ur img to cloud storage e.dropbox google drive: <body style="background-image:url("#img url")"
9th Jun 2020, 7:58 PM
Goke Ekundayo
Goke Ekundayo - avatar
+ 3
Background-image:url(imageurl)
10th Jun 2020, 4:01 AM
Pixels
Pixels - avatar
+ 3
Background-image:url(imageurl);
10th Jun 2020, 4:01 AM
Pixels
Pixels - avatar
+ 2
Pls answer
8th Jun 2020, 12:43 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
I'm trying to make a website in which I am trying to insert the image in the background but nothing happens!!
8th Jun 2020, 12:44 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
8th Jun 2020, 12:45 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
This is the code
8th Jun 2020, 12:45 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
Ok thnx I will try
8th Jun 2020, 12:45 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
It doesn't work!!
8th Jun 2020, 12:47 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 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
8th Jun 2020, 12:50 PM
Abhay
Abhay - avatar
+ 2
Ok
8th Jun 2020, 12:50 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
How to add the correct path??
8th Jun 2020, 12:51 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 2
How should I add the image in the same folder??
8th Jun 2020, 12:51 PM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
+ 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;
9th Jun 2020, 2:37 AM
NEEL SHAH
NEEL SHAH - avatar