+ 5

How should I put an HTML "<img>" in the background of the page?

https://code.sololearn.com/WHUUb62QsujA/?ref=app

31st May 2018, 9:53 AM
Calimari
Calimari - avatar
7 Réponses
+ 2
<body background="URLHERE"></body>
31st May 2018, 10:04 AM
Jonas Schröter
Jonas Schröter - avatar
+ 7
use the css background property on the body like this: body { background: url("https://www.flickeringmyth.com/?attachment_id=765481") 100% 100%; }
31st May 2018, 10:05 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
1st Jun 2018, 8:50 AM
Calimari
Calimari - avatar
+ 6
at the background url it's not working Nomeh Uchenna Gabriel
1st Jun 2018, 8:54 AM
Calimari
Calimari - avatar
+ 5
Use background-image: url('the url of the image'); instead of img
31st May 2018, 10:07 AM
cyk
cyk - avatar
31st May 2018, 11:29 AM
Hiro
Hiro - avatar
+ 1
thanks jonas
2nd Jun 2018, 11:39 PM
Balwinder Kumar
Balwinder Kumar - avatar