What is the code for setting background image in css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the code for setting background image in css?

1st Sep 2017, 3:45 PM
Stephen
3 Answers
+ 3
use the background-image property and the url word the syntax is like this: body { background-image: url("image.jpg"); }
1st Sep 2017, 3:52 PM
Damon Keane
+ 1
thank u
1st Sep 2017, 3:53 PM
Stephen
+ 1
@Stephen 😉
1st Sep 2017, 3:54 PM
Damon Keane