+ 1

Put image

How to put an image as background image of a div tag?

21st Mar 2019, 7:23 PM
Ali
3 Answers
+ 5
Plz use the search box on sololearn or Google..
21st Mar 2019, 8:56 PM
Asmit joy
Asmit joy - avatar
+ 4
//Background-image css property is used for that div{ background-image:url('http://www.sololearn.com/images/tree.jpg'); } //Lesson https://www.sololearn.com/learn/CSS/1104/
21st Mar 2019, 7:34 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
I want to put an image .jpg from internet as background image of div tag in css file
21st Mar 2019, 7:25 PM
Ali