+ 2

How can i put an image background for whole of body??

please help me

16th Mar 2018, 6:06 PM
Omar Sherwany
Omar Sherwany - avatar
4 Answers
+ 4
Use : body { background-image:url(image-url); background-size:cover; /* or 'contain' regarding what you prefer */ background-repeat:no-repeat; } https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
16th Mar 2018, 6:29 PM
visph
visph - avatar
+ 4
Put it in css : body { background-image:url(image-url); } replace "image-url" by the url of the url of image you want to use as background.
16th Mar 2018, 6:09 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 2
i did that but repeat it both horizontally and vertically!!!
16th Mar 2018, 6:19 PM
Omar Sherwany
Omar Sherwany - avatar
+ 1
thank you. it solved.đŸ˜—â€
16th Mar 2018, 6:38 PM
Omar Sherwany
Omar Sherwany - avatar