When making a form with an image as its background, how do you make the image span the entire page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When making a form with an image as its background, how do you make the image span the entire page?

3rd May 2022, 10:05 AM
Kachi Emmanuel
Kachi Emmanuel - avatar
4 Answers
+ 5
But if that's what you want; then why not just set the image as body background rather the form's?
3rd May 2022, 7:46 PM
Ipang
+ 3
Share the code, someone can look and help. I suspect that you have your image code in the element of your form instead of the main page.
3rd May 2022, 8:43 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Use background: url(image.jpg) center / 100% no-repeat; https://code.sololearn.com/WIKpkId9F1s1/?ref=app
4th May 2022, 8:29 AM
Calviղ
Calviղ - avatar
+ 1
Ipang I did set the image as the body background. I just want to know how to make it span the entire page
3rd May 2022, 8:40 PM
Kachi Emmanuel
Kachi Emmanuel - avatar