Css | SoloLearn: Learn to code for FREE!



Using css instead of putting colour can put a pic on the background of whole body, if possible how to do it?

7/2/2018 5:43:15 PM

Shyamal Bhatt

9 Answers

New Answer


body{ background-image: url("http..."); }


Just play around with the size properties untill you get what you want here is some info on how https://www.w3schools.com/cssref/css3_pr_background-size.asp


body { background-image : url("https://image.jpg"); }


Meghana S Thank you!!!🙂 I will be happy to help you any way I can. If you have any questions about any of it just leave me a comment on it I will try to answer. We are not supposed to spam these threads with off topic chat but codes are fair game.🙂


Thanks Calviղ I tested and both methods appear to work fine. You have helped with my codes you are well aware I don't worry with proper just results lol.🙃


body{ background-image: url("link"); background-size:100% 100%; }


Please note that the correct way to set url on background image css is background-image: url(http://....jpg); It's without double quotes between the url link.


hey I just saw your hacker terminal challenge bobbie and ... omg I loved it. Can you teach me how to do it ?? I am amazed


Since the web page is on monitor, I need to be adjust to px of that image?