+ 2

how to do background img and fix it or set

This is my assignmnt project. I refer with internet but nothing happen or maybe my laptop cant support or something wrong i dont know

23rd Feb 2018, 6:13 PM
Muhammad Fadhli
Muhammad Fadhli - avatar
4 RĂ©ponses
+ 10
in html: <body background="img.jpg"> make sure the image is in the same folder as your html document I created a little something to illustrate this. https://code.sololearn.com/WXf6R93K8r9f/?ref=app
23rd Feb 2018, 7:25 PM
Koketso Dithipe
Koketso Dithipe - avatar
+ 3
in css : background-image : url ("filepath");
23rd Feb 2018, 6:56 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 2
Tq so much i apprct
23rd Feb 2018, 8:36 PM
Muhammad Fadhli
Muhammad Fadhli - avatar
+ 2
add 'fixed' to your css background-image. body{ background-image : URL("") fixed; }
24th Feb 2018, 7:36 AM
Ludovic COMBES
Ludovic COMBES - avatar