Background Picture | Sololearn: Learn to code for FREE!

0

Background Picture

How to put background pictures in HTML (in SoloLearn)?

7/25/2021 5:26:10 AM

Arnav Singh

2 Answers

New Answer

+2

In css styling, set background selector in body tag with the following format: body { background: url(image.jpg) <x> <y> / <size> no-repeat <color>; } where x is x position in %/px or left, center, right y is y position in %/px, or top, center, bottom size is image size in % (% of the original image size). color is fallback color for background image that does not cover the screen fully. See more examples here: https://code.sololearn.com/Wn4dsAwJ2M8f/?ref=app https://code.sololearn.com/W5HkVaC5uFo3/?ref=app https://code.sololearn.com/WIKpkId9F1s1/?ref=app https://code.sololearn.com/W6C42qMCYR4U/?ref=app https://code.sololearn.com/Wx6ljf1vrK7i/?ref=app https://code.sololearn.com/WvvEA7znzQr5/?ref=app https://code.sololearn.com/W0ufFxdLTP11/?ref=app

0

Arnav Singh Duplicate question. Use search option. https://www.sololearn.com/discuss/2660940/?ref=app https://www.sololearn.com/discuss/2363011/?ref=app https://www.sololearn.com/discuss/2732529/?ref=app https://www.sololearn.com/discuss/2360045/?ref=app https://www.sololearn.com/discuss/1358397/?ref=app https://www.sololearn.com/discuss/2842085/?ref=app