+ 6

How to add a background-image in html form??? I am a beginner, please help me.

https://code.sololearn.com/Wq6U1mElhLqZ/?ref=app

1st Feb 2019, 3:06 PM
Kartick Chandra Das
Kartick Chandra Das - avatar
5 Answers
+ 29
form{ background: url(Put the path of your image here); }
1st Feb 2019, 6:03 PM
Mitali
Mitali - avatar
+ 3
Also note that the image file should be accessible on the web. The file you are using is only accessible from your own computer or camera...
1st Feb 2019, 9:06 PM
marjel101
marjel101 - avatar
+ 3
I looked into your css file and you forgot to put quation marks around the url itself so you should do it like this: background: url("folder/subfolder/image.png"); Also note that you shouldn't have any spaces in your filepath. It will most likely cause an error as well. So instead of "this is a folder" name it like this "this_is_a_folder"
2nd Feb 2019, 11:27 AM
Stef Schöningh
Stef Schöningh - avatar
+ 1
It can be done with css, use the following syntax: form{ background-image:url("put the link to your image here"); }
2nd Feb 2019, 3:35 PM
Eugene Lyngkhoi
Eugene Lyngkhoi - avatar
+ 1
How will i fade my background image?
14th Feb 2019, 1:10 PM
Barikere-op Popnwin
Barikere-op Popnwin - avatar