How can i put pictures as my background?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i put pictures as my background??

👆👆👆

11th Dec 2016, 5:38 AM
Romy Hampray O. Pasano
Romy Hampray O. Pasano - avatar
6 Answers
+ 2
you should put this ; <background src="here put the patch of image">
18th Dec 2016, 1:56 PM
Nacereddine Drici
Nacereddine Drici - avatar
0
tag_name { background-image: url(" "); }
11th Dec 2016, 5:45 AM
Vipul Walia
Vipul Walia - avatar
0
vipul walia, can you give me an example url??
11th Dec 2016, 5:47 AM
Romy Hampray O. Pasano
Romy Hampray O. Pasano - avatar
0
Sure When using the url() value, you have three choices: relative path based on the root domain of the CSS file — begin with a slash (/) as shown aboverelative path based on the immediate directory of the CSS file — no slash ( url(path/to/image.png) )absolute URL, if you are linking to an external resource —url(http://example.com/path/to/image.png) Remember that the relative URLs are relative to the CSS file, not the page. Example taking multiple image urls body {     background-image: url("img_tree.gif"),url("img_flwr.gif");     background-color: #cccccc; }
11th Dec 2016, 6:04 AM
Vipul Walia
Vipul Walia - avatar
0
body{ background-repeat:no repeat; background:url("") ; background-attachment:fixed; }
11th Dec 2016, 6:14 AM
Rohan Yadav
Rohan Yadav - avatar
0
YOU TYPE THIS IN <img src=URL alt="" /> and online pitcher link will go into the URL spot IN HTML!!!!
15th Dec 2016, 1:17 AM
TIPICAL SPIDER
TIPICAL SPIDER - avatar