How can we create a background with image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we create a background with image?

create background images

7th May 2018, 4:48 PM
Dim Bunhuch
Dim Bunhuch - avatar
4 Answers
+ 3
Only do like this: background-image: url(your background) ; ___UPDATE___ If You Want Add background-size: cover;
2nd Jun 2018, 10:12 PM
Arkan
Arkan - avatar
+ 2
Hi Empty Bunhuch You can add some CSS... follow the link for CSS code https://code.sololearn.com/Wf7Yn5x4u8iK/?ref=app
7th May 2018, 5:37 PM
Bug Slayer
+ 1
with css u can do it like background-image:url ("url_here");
7th May 2018, 5:02 PM
Yugabdh
Yugabdh - avatar
+ 1
without using bacground-image there is another way, that is to create an <img> and making the width the same as the page, and the position fixed(image does not move with vert scroll) or absolute(img does move with vert scroll) while positioning it on the top left corner.
7th May 2018, 5:51 PM
Bebida Roja
Bebida Roja - avatar