How to make a background image cover the whole screen in HTML? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

How to make a background image cover the whole screen in HTML?

I have tried making my background image "fixed" and I have made the image massive but still when I scroll the picture always moves (showing the default white of safari that I do not want). Is there any way to make the background image of my entire web page not move? while covering the whole screen?

18th May 2018, 8:25 PM
Kyle
Kyle - avatar
2 Respuestas
+ 6
body{ background-image:url(imagelink); background-attachment:fixed; }
19th May 2018, 7:00 AM
Benjamin Lapken
Benjamin Lapken - avatar
+ 3
body{ background-image:url(img.link); background-size:100% 100% } HappyToHelp that wouldn't work for background images
18th May 2018, 9:27 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar