How do make a image as a background to a website? | Sololearn: Learn to code for FREE!
0

How do make a image as a background to a website?

Do u have to save the html file in the same saver with the image or u can just get any image

27th Oct 2018, 4:31 PM
Higher Groundz
Higher Groundz - avatar
3 Answers
0
i have tried, shud i save both my css file in the same folder with the images i want to use?
28th Oct 2018, 5:14 AM
Higher Groundz
Higher Groundz - avatar
+ 5
You can do that by using the background-image property in CSS: body {     background-image: url("image.gif"); }
27th Oct 2018, 4:53 PM
Harsh
Harsh - avatar
+ 4
Yes.
28th Oct 2018, 6:45 AM
Harsh
Harsh - avatar